/* Container for all profiles */
.omm-profiles-wrapper {
    /* Set up for 4 columns by default using CSS Grid */
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 20px;
    padding: 20px;
}

/* -------------------- RESPONSIVE BREAKPOINTS -------------------- */

/* Tablet (Screens between 768px and 1200px) - Show 3 columns */
@media (max-width: 1200px) {
    .omm-profiles-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Small Tablet / Large Phone (Screens between 576px and 767px) - Show 2 columns */
@media (max-width: 767px) {
    .omm-profiles-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Phone (Screens up to 575px) - Show 1 column */
@media (max-width: 575px) {
    .omm-profiles-wrapper {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}


/* -------------------- INDIVIDUAL PROFILE STYLES  -------------------- */

.omm-profile-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.omm-image-container {
    position: relative;
    overflow: hidden;
    height: 350px; /* Fixed height for consistent look */
}

.omm-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* The More Info Overlay */
.omm-hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Hover Effect: Show overlay and slightly zoom image */
.omm-image-container:hover .omm-hover-info {
    opacity: 1;
}

.omm-image-container:hover img {
    transform: scale(1.05);
}

.omm-more-info-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ee9af0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid white;
}

.omm-details {
    padding: 15px;
}

.omm-name {
    margin-top: 0;
    color: #4d454d;
}

/* -------------------- PAGINATION STYLES -------------------- */

.omm-pagination {
    clear: both;
    text-align: center;
    padding: 20px 0;
}

.omm-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
}

.omm-pagination .page-numbers.current {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}


/* ========================================================================= */
/* SINGLE PROFILE PAGE - COMPLETE REDESIGN */
/* ========================================================================= */

.omm-single-profile-wrapper {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(233, 30, 99, 0.15);
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

.omm-profile-title {
    background: linear-gradient(135deg, #f266e3, #ecaac7);
    color: white;
    text-align: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 2.8em;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* --- Profile Header Section --- */
.omm-profile-header {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 0;
    min-height: 400px;
}

.omm-profile-image {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-right: 3px solid #f9c3f4;
}

.omm-profile-image img {
    width: 100%;
    max-width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.omm-basic-info {
    padding: 40px;
    background: linear-gradient(135deg, #fff9fc, #ffffff);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.omm-basic-info h2 {
    color: #e91e63;
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 2.2em;
    border-bottom: 3px solid #f9c3f4;
    padding-bottom: 10px;
}

.omm-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #e91e63;
}

.omm-info-label {
    font-weight: bold;
    color: #e91e63;
    min-width: 100px;
    font-size: 1.1em;
}

.omm-info-value {
    color: #333;
    font-size: 1.2em;
    font-weight: 500;
}

.omm-info-value.unlocked {
    color: #4CAF50;
    font-weight: bold;
}

/* --- About Me Section --- */
.omm-description-full {
    padding: 50px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-top: 3px solid #f9c3f4;
    border-bottom: 3px solid #f9c3f4;
}

.omm-description-full h3 {
    color: #e91e63;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f9c3f4;
}

.omm-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    font-size: 1.1em;
    color: #555;
}

.omm-content p {
    margin-bottom: 15px;
}

.omm-content strong {
    color: #e91e63;
}

/* --- Gallery Photos Section --- */
.omm-photos-gallery {
    padding: 50px;
    background: white;
}

.omm-photos-gallery h3 {
    color: #e91e63;
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 35px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid #f9c3f4;
}

.omm-photos-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.omm-gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.omm-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.25);
}

.omm-photos-gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.omm-gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Back Button --- */
.omm-profile-actions {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #fff9fc, #f8f9fa);
    border-top: 3px solid #f9c3f4;
}

.omm-back-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #f96fc9, #e15ab3);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(233, 30, 99, 0.3);
    border: none;
    cursor: pointer;
}

.omm-back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.4);
    color: white;
}

/* --- Password Lock Section --- */
.omm-password-lock {
    padding: 10px 40px;
    text-align: center;
    background: linear-gradient(135deg, #fff9fc, #ffffff);
}

.omm-lock-icon {
    font-size: 4em;
    margin-bottom: 0px;
}

.omm-password-lock h2 {
    color: #e91e63;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.omm-password-lock p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.omm-password-form {
    max-width: 400px;
    margin: 0 auto;
}

.omm-password-form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid #f9c3f4;
    border-radius: 25px;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.omm-password-form input[type="password"]:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
}

.omm-password-form input[type="submit"] {
	width: 80%;
	padding: 15px 20px;
	background: linear-gradient(135deg, #f27cca, #f753af);
	border-radius: 40px;
}

.omm-password-form input[type="submit"]:hover {
	 background: linear-gradient(135deg, #f995e9, #d739be);
}

.omm-error-message {
    color: #f44336 !important;
    font-weight: bold;
    background: #ffebee;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #f44336;
    max-width: 400px;
    margin: 20px auto;
}


/* --- Contact Admin Section --- */
.omm-contact-admin-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f9c3f4;
}

.omm-contact-admin-btn {
	background-color: #15ca75;
	padding: 15px 35px;
	border-radius: 15px;
	color: #fff;
}

.omm-contact-admin-btn:hover {
	background-color: #34df8f;
	padding: 17px 37px;
	border-radius: 15px;
	color: #fff;
}

/* --- Contact Modal Styles --- */
.omm-modal {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
}

.omm-modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0,0,0,0.3);
    animation: ommModalSlideIn 0.3s ease-out;
}

@keyframes ommModalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.omm-modal-content h2 {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    margin: 0;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.omm-close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0,0,0,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 11;
}

.omm-close-modal:hover {
    background: rgba(0,0,0,0.4);
}

.omm-contact-form {
    padding: 30px;
}

/* Form အတွက် responsive design */
@media (max-width: 768px) {
    .omm-modal-content {
        margin: 10px auto;
        width: 95%;
    }
    
    .omm-contact-form {
        padding: 20px;
    }
    
    .omm-form-actions {
        flex-direction: column;
        gap: 10px;
    }
	
	.omm-cancel-btn,
    .omm-send-btn {
        width: 100%;
        min-width: auto;
    }
}

.omm-form-group {
    margin-bottom: 20px;
}

.omm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e91e63;
}

.omm-form-group input,
.omm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f9c3f4;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.omm-form-group input:focus,
.omm-form-group textarea:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.2);
}

.omm-selected-profile-display {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #e91e63;
    color: #333;
}

.omm-cancel-btn {
    background: #6c757d;
    color: white;
    padding: 9px 25px;
	margin-top: -9px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
}

.omm-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.omm-send-btn {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
	margin-top: -10px;
}

.omm-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
}

.omm-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    align-items: center;
}

.omm-success-message {
    display: flex;
    align-items: flex-start;
    background: #e8f5e9;
    border: 2px solid #4CAF50;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 15px;
    color: #2e7d32;
}

.omm-success-icon {
    background: #4CAF50;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.omm-success-content h3 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    font-size: 1.3em;
}

.omm-success-content p {
    margin: 5px 0;
    line-height: 1.5;
}

.omm-success-content em {
    color: #666;
    font-style: italic;
}

/* --- OK Button for Success Modal --- */
.omm-ok-btn {
    padding: 12px 30px;
	margin-bottom: 15px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.omm-ok-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.omm-modal-actions {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* --- Contact Note --- */
.omm-contact-note {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-style: italic;
    font-size: 0.9em;
}

/* Custom Profile Form Styles for Contact Modal */
.omm-contact-form .name-fieldset {
    border: 1px solid #f9c3f4;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.omm-contact-form .name-fieldset legend {
    font-weight: bold;
    color: #e91e63;
    padding: 0 10px;
}

.omm-contact-form .name-inputs-wrapper {
    display: flex;
    gap: 15px;
}

.omm-contact-form .name-input-group {
    flex: 1;
}

.omm-contact-form .name-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.omm-contact-form .name-input-group input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #f9c3f4;
    border-radius: 5px;
    box-sizing: border-box;
}

.omm-contact-form .phone-fax-fieldset {
    border: 1px solid #f9c3f4;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.omm-contact-form .phone-fax-fieldset legend {
    font-weight: bold;
    color: #e91e63;
    padding: 0 10px;
}

.omm-contact-form .address-fieldset {
    border: 1px solid #f9c3f4;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.omm-contact-form .address-fieldset legend {
    font-weight: bold;
    color: #e91e63;
    padding: 0 10px;
}

.omm-contact-form .postcode-inputs {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.omm-contact-form .auto-fill-guidance {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin: 5px 0 15px 0;
}

.required-asterisk {
    color: #e91e63;
}

/* Responsive Design for Contact Modal */
@media (max-width: 768px) {
    .omm-contact-form .name-inputs-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .omm-contact-form .postcode-inputs {
        flex-wrap: wrap;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .omm-modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .omm-contact-form {
        padding: 20px;
    }
    
    .omm-form-actions {
        flex-direction: column;
    }
}

/* --- Responsive Design --- */
@media (max-width: 968px) {
    .omm-profile-header {
        grid-template-columns: 1fr;
    }
    
    .omm-profile-image {
        border-right: none;
        border-bottom: 3px solid #f9c3f4;
        padding: 40px 20px;
    }
    
    .omm-profile-image img {
        max-width: 250px;
        height: 300px;
    }
    
    .omm-photos-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .omm-single-profile-wrapper {
        margin: 15px;
        border-radius: 15px;
    }
    
    .omm-profile-title {
        font-size: 2.2em;
        padding: 25px 15px;
    }
    
    .omm-basic-info,
    .omm-description-full,
    .omm-photos-gallery {
        padding: 30px 20px;
    }
    
    .omm-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .omm-info-label {
        margin-bottom: 5px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .omm-photos-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .omm-photos-gallery-grid img {
        height: 200px;
    }
    
    .omm-profile-title {
        font-size: 1.8em;
    }
    
    .omm-basic-info h2 {
        font-size: 1.8em;
    }
    
    .omm-description-full h3,
    .omm-photos-gallery h3 {
        font-size: 1.6em;
    }
}

/* IMPORTANT: Make sure these styles are loaded */
body .omm-single-profile-wrapper {
    display: block !important;
    visibility: visible !important;
}