/* --- Global Styles (Optional but recommended for consistency) --- */
body {
    font-family: "Inter", sans-serif; /* Define a global font */
    margin: 0;
    padding: 20px; /* Add some general page padding */
    background-color: #f4f7f6; /* Light background for the whole page */
}

/* --- CSS for membership filter buttons (e.g., "All", "Gold", "Silver") --- */
.membership-summary {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.membership-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    overflow: hidden; /* Ensures inner elements respect border-radius */
    background: #f5f5f5;
}

.membership-group .membership-name {
    padding: 8px 12px;
    font-weight: 500;
    white-space: nowrap;
}

.membership-group .status-button {
    padding: 8px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

.membership-group .status-button.active, .membership-button-all.active {
    background: #0073aa; /* Active state background for buttons */
    color: white;
}

.membership-group.active {
    border-color: #0073aa; /* Active state border for group */
}

.membership-button-all {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
}

/* --- General freelancer row styling (main container for profile and matches) --- */
.freelancer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.freelancer-row {
    display: flex;
    gap: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    align-items: stretch;
}

/* --- Styles for the main user profile card (e.g., "Karen Perez" on the left) --- */
.main-profile-card {
    width: 280px; /* Adjusted width for a slightly larger card */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    text-align: center; /* Center text within the card */
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* More rounded corners */
    background-color: #ffffff; /* White background */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Stronger shadow for depth */
    flex-shrink: 0;
}

.profile-image-container {
    margin-bottom: 15px; /* Space below the image */
}

.profile-image-container img {
    width: 90px; /* Slightly larger image */
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #007bff; /* Blue border around the image */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.profile-name {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 0.9em; /* Larger name font */
    color: #2c3e50;
}

.profile-details-columns {
    display: flex;
    justify-content: space-between; /* Space out columns */
    width: 100%; /* Ensure it takes full width of parent */
    margin-top: 15px; /* Space above the columns */
    border-top: 1px solid #eee; /* Separator line above columns */
    padding-top: 15px;
}

.profile-column {
    flex: 1;
    padding: 0 10px; /* Horizontal padding for text inside columns */
    text-align: left; /* Align text within columns to the left */
}

.profile-column.about-me-column {
    border-right: 1px solid #eee; /* Vertical separator between columns */
}

.profile-column h4 {
    font-size: 1.1em; /* Smaller heading for sub-sections */
    color: #007bff; /* Blue color for column headings */
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
}

.profile-column p {
    margin-bottom: 6px;
    font-size: 11px; /* Slightly smaller font for details */
    color: #555;
    line-height: 1.4;
}

.main-profile-card .profile-name { /* This applies to the main profile's h3 */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #2c3e50;
}

/* --- Profile Badges (Membership, Status, Missing Info) --- */
.profile-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* Allow badges to wrap on small screens */
}

.badge {
    padding: 5px !important;
    border-radius: 16px; /* Pill shape */
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.membership-badge {
    background-color: #6c757d; /* Grey for membership */
    color: white;
}

.status-badge.available-for-match {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.status-badge.matched {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.missing-info-button.badge {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.missing-info-button.badge:hover {
    background-color: #dc3545;
    color: white;
}


/* --- Action buttons (Unmatch) --- */
.main-profile-card .unmatch-button {
    padding: 8px 15px;
    margin-top: 10px; /* Space above the button */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    background-color: #ffcccc; /* Light red/pink */
    border: 1px solid #cc0000; /* Darker red border */
    color: #cc0000; /* Red text */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.main-profile-card .unmatch-button:hover {
    background-color: #cc0000;
    color: white;
}


/* --- Styles for matched profiles section --- */
.matched-profiles {
    flex-grow: 1;
    display: flex;
    flex-wrap: nowrap; /* Prevent wrapping, enable horizontal scroll */
    gap: 20px; /* Space between match cards */
    max-width: 900px; /* Max width for matched profiles section, but will scroll past this */
    min-width: 300px; /* Minimum width to prevent crushing */
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    justify-content: flex-start; /* Align items to the start for scrolling */
    overflow-x: auto; /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.matched-profiles::-webkit-scrollbar {
    height: 8px;
}

.matched-profiles::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.matched-profiles::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.matched-profiles::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* --- Styles for individual match cards --- */
.match-card {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    padding: 15px;
    background: #fdfdfd;
    min-width: 280px; /* Ensure a generous minimum width for each card */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0; /* Prevent cards from shrinking */
    width:333px;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.match-card .profile-image-container { /* Specific to match cards */
    margin-bottom: 10px;
}



.match-card .profile-name { /* This applies to the h5 within match cards */
    margin: 0 0 10px;
    font-size: 1.1em;
    color: #333;
}

.match-percentage {
    font-size: 0.9em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}


/* --- Styles for columns WITHIN match cards --- */
.match-card .profile-details-columns { /* Specific to match cards */
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    flex-wrap: wrap; /* Allows columns to wrap inside match card on very small screens */
}

.match-card .profile-column { /* Specific to match cards */
    flex: 1;
    padding: 0 5px; /* Smaller padding for columns in match cards */
    text-align: left;
    min-width: 100px; /* Ensure columns have minimum width for content */
}

.match-card .profile-column.about-me-column { /* Specific to match cards */
    border-right: 1px solid #f0f0f0; /* Lighter separator */
}

.match-card .profile-column h4 { /* Specific to match cards */
    font-size: 0.95em; /* Smaller heading for sub-sections */
    color: #007bff;
    margin-top: 0;
    margin-bottom: 8px;
    padding-bottom: 3px;
    border-bottom: 1px solid #f8f8f8;
    text-align: center; /* Center heading within its column */
}

.match-card .profile-column p { /* Specific to match cards */
    margin-bottom: 4px;
    font-size: 0.8em;
    color: #666;
    line-height: 1.3;
}

/* --- Styles for buttons WITHIN match cards --- */
.match-card .profile-actions { /* Specific to match cards */
    margin-top: 15px;
    gap: 10px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
}


/* --- Responsiveness --- */
@media (max-width: 768px) {
    .freelancer-row {
        flex-direction: column;
        align-items: center;
    }
    .main-profile-card {
        width: 95%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .matched-profiles {
        width: 95%;
        max-width: 100%;
    }
}

/* --- MODAL STYLES --- */
.custom-modal-container {
    display: none;
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
    justify-content: center; 
    align-items: center; 
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
}

.custom-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    text-align: center;
    font-family: 'Inter', sans-serif; 
    width: 90%;
    max-width: 450px;
    animation: fadeInScale 0.3s ease-out forwards;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-modal-content h3 {
    margin-top: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
}

.custom-modal-content p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 5px; 
}

.custom-modal-close-button,
.custom-confirm-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.custom-modal-close-button:hover,
.custom-confirm-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.custom-confirm-buttons {
    display: flex;
    justify-content: center;
    gap: 15px; 
    margin-top: 20px;
}

.custom-confirm-yes {
    background-color: #28a745;
    color: white;
}
.custom-confirm-yes:hover {
    background-color: #218838;
}

.custom-confirm-no {
    background-color: #dc3545;
    color: white;
}
.custom-confirm-no:hover {
    background-color: #c82333;
}


/* --- "Missing Info" Modal Specific Styles --- */
#missing-info-checklist {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    text-align: left;
    background-color: #f9f9f9;
}

#missing-info-checklist .checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

#missing-info-checklist .checklist-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

#missing-info-checklist .checklist-item label {
    font-size: 1em;
    vertical-align: middle;
    cursor: pointer;
}

#missing-info-checklist .checklist-item label.is-missing {
    color: #dc3545; /* Red color for missing items */
    font-weight: bold;
}


/* --- Pagination Styling --- */
#freelancer-pagination.pagination-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
}

#freelancer-pagination ul.page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#freelancer-pagination ul.page-numbers li a,
#freelancer-pagination ul.page-numbers li span {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    border-left: none;
}
#freelancer-pagination ul.page-numbers li:first-child a,
#freelancer-pagination ul.page-numbers li:first-child span {
    border-left: 1px solid #ddd;
}


#freelancer-pagination ul.page-numbers li a:hover {
    background-color: #e9ecef;
    color: #0056b3;
}

#freelancer-pagination ul.page-numbers li span.current {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
    font-weight: bold;
}



/* --- Styles for Horizontal Image Gallery --- */
.profile-image-container {
    width: 100%;
    margin-bottom: 15px;
}

.horizontal-gallery {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto; /* This enables horizontal scrolling */
    overflow-y: hidden;
    gap: 10px; /* Creates space between the images */
    padding: 5px;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #888 #f1f1f1; /* For Firefox */
}

/* Styling the scrollbar for Webkit browsers (Chrome, Safari) */
.horizontal-gallery::-webkit-scrollbar {
    height: 8px;
}

.horizontal-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.horizontal-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.horizontal-gallery::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.horizontal-gallery img {
    flex-shrink: 0; /* Prevents images from shrinking to fit */
    object-fit: contain; /* Ensures images cover the area without distortion */
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* Define specific sizes for images in the main card vs. match cards */
.main-profile-card .horizontal-gallery img {
    width: 220px;
    height: 220px;
}

.match-card .horizontal-gallery img {
    width: 150px;
    height: 150px;
}

/* Styles for the placeholder when no images are available */
.no-image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    color: #999;
    border: 2px dashed #ccc;
    border-radius: 8px;
}

.main-profile-card .no-image-placeholder {
    height: 220px;
}

.match-card .no-image-placeholder {
    height: 150px;
}


/* In your theme's style.css or a dedicated CSS file */

.notifications-page-wrapper {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.notifications-page-wrapper h1 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
}

.notification-timestamp {
    font-size: 0.85em;
    color: #888;
    margin-bottom: 5px;
    text-align: right;
}

.notification-message {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

/* Specific styles for notification types */
.notification-type-matched {
    border-left: 5px solid #28a745; /* Green for success/match */
}

.notification-type-emailed_missing_data {
    border-left: 5px solid #ffc107; /* Yellow for warning/attention */
}

.loading-message, .no-notifications-message, .error-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #dc3545;
    font-weight: bold;
}

















/* === SelamHabesha Notification cards =================== */

#notifications-container ul,
#notifications-container li {
  margin: 0;
  padding: 0;
  list-style: none;                 /* remove default bullets */
}

#notifications-container li {
  position: relative;               /* allow absolute icon */
  display: flex;                    /* icon + text */
  align-items: flex-start;
  gap: 14px;
  background: #fffde8;              /* soft yellow */
  border-radius: 12px;
  padding: 16px 18px 16px 64px;     /* left space for icon */
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 2px 4px rgba(0,0,0,.06);
}

/* Cup icon on the left  -------------------------------- */
#notifications-container li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  background: url("https://jobtea.com/wp-content/uploads/2025/06/blue-1.png")
              center/contain no-repeat;
}

/* Date (if present) – subtle grey */
#notifications-container li small,
#notifications-container li time,
#notifications-container li .notification-date {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}




.notification-type-emailed_missing_data {
    border-left: 5px solid #fffebd;
}





#notifications-container li {
    
    background: #fdfff4;
  
}

/* Custom Styles for Forminator Email Validation */

/* Style for the error message itself */
.forminator-error-message.custom-email-error {
    color: #dc3545 !important; /* Make text red, ensure override */
    font-size: 0.85em !important;
    margin-top: 5px !important;
    display: block !important; /* Ensure it takes its own line */
    font-weight: bold !important;
    animation: fadeIn 0.3s ease-out; /* Simple fade-in animation */
    position: relative; /* Ensure it's positioned correctly */
    z-index: 10; /* Ensure it appears above other elements if necessary */
}

/* Style for the input field when it has an error */
.forminator-input.forminator-has-error {
    border-color: #dc3545 !important; /* Make border red */
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important; /* Add a subtle red shadow */
}

/* Optional: Style for the loading spinner if you add one to your CSS */
.forminator-input.forminator-loading-field {
    cursor: wait;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23888" d="M12 2v4a8 8 0 0 1 8 8h4a12 12 0 0 0-12-12zm0 18v4a8 8 0 0 1-8-8H0a12 12 0 0 0 12 12z" opacity="0.4"/><path fill="%23000" d="M12 2v4a8 8 0 0 1 8 8h4a12 12 0 0 0-12-12zm0 18v4a8 8 0 0 1-8-8H0a12 12 0 0 0 12 12z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px 18px;
    padding-right: 35px; /* Add padding to make space for the spinner */
}

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


/*img box*/

.image-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}

/* Modal main box */
.image-modal-container {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
     width: 80vw; /* was 95vw */
    height: 76.5vh; /* was 90vh */
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Gallery of images */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    overflow-y: auto;
    padding: 10px;
    flex-grow: 1;
}

/* Each image wrapper */
.image-item {
    flex: 1 1 260px;
    max-width: 90%;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 6px;
}

/* Image styling */
.image-item img {
    width: 100%;
    height: auto;
    max-height: 68vh;
    object-fit: contain;
    border-radius: 6px;
}

/* Close "X" button */
.modal-close-x {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #000;
    border: none;
    font-size: 32px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: background-color 0.3s, transform 0.2s;
}

.modal-close-x:hover {
    background-color: #333;
    transform: scale(1.1);
}

.view-images-btn {
    display: inline-block;
    background-color: black;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.view-images-btn:hover {
    background-color: #0056b3;
    transform: scale(1.03);
}

.view-images-btn:active {
    transform: scale(0.98);
}

/* Mobile fixes */
@media (max-width: 600px) {
    .image-item {
        flex: 1 1 100%;
    }

    .image-modal-container {
        padding: 10px;
        width: 88vw;
        height: 85vh;
    }
}



p#billing_first_name_field {
    display: none ;
}

p#billing_last_name_field {
    display: none; }
    
    p#billing_country_field {
    display: none;
}


p#billing_phone_field {
    display: none;

}

p#billing_postcode_field {
    display: none;
}
