/* Talent Registration Form Styles */

/* Form Structure */
.talent-registration-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Four columns layout for names and personal info */
.talent-registration-modal .form-row.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/* Three columns layout for identity info */
.talent-registration-modal .form-row.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

/* Contact info specific styling - better distribution for email, website, phone */
.talent-registration-modal .form-section h4 + .form-row.three-columns {
    grid-template-columns: 1.3fr 1fr 1.4fr; /* Email wider, Website normal, Phone wider for intl-tel-input */
    gap: 20px;
}

.talent-registration-modal .form-row .form-group.full-width {
    grid-column: 1 / -1;
}

/* Responsive design for four columns */
@media (max-width: 1200px) {
    .talent-registration-modal .form-row.four-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .talent-registration-modal .form-row.four-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Responsive design for three columns */
@media (max-width: 1200px) {
    .talent-registration-modal .form-section h4 + .form-row.three-columns {
        grid-template-columns: repeat(3, 1fr); /* Equal width for tablets */
        gap: 15px;
    }
}

@media (max-width: 1000px) {
    .talent-registration-modal .form-row.three-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 800px) {
    /* Put phone in new row for better intl-tel-input usability */
    .talent-registration-modal .form-section h4 + .form-row.three-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .talent-registration-modal .form-section h4 + .form-row.three-columns .form-group:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .talent-registration-modal .form-row.three-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .talent-registration-modal .form-section h4 + .form-row.three-columns .form-group:nth-child(3) {
        grid-column: auto;
        margin-top: 0;
    }
}

/* Special styling for calculated age field */
.talent-registration-modal input#calculated-age {
    background-color: #f8f9fa;
    color: #6c757d;
    font-style: italic;
    cursor: not-allowed;
}

/* Marital status select styling */
.talent-registration-modal select[name="marital_status"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6c757d 50%),
                      linear-gradient(135deg, #6c757d 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
}

.talent-registration-modal select[name="marital_status"]:focus {
    border-color: #d4af37;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Names section styling */
.talent-registration-modal .form-row.four-columns .form-group input[type="text"] {
    font-weight: 500;
    color: #2c3e50;
}

.talent-registration-modal .form-row.four-columns .form-group input[type="text"]:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

/* Other ID type details styling (initially hidden) */
.talent-registration-modal #other-id-type-row {
    transition: all 0.3s ease;
    margin-top: -10px;
}

.talent-registration-modal #other-id-type-details {
    background-color: #fff9e6;
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 12px 15px;
    font-style: italic;
    color: #856404;
}

.talent-registration-modal #other-id-type-details:focus {
    border-color: #b8860b;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
    background-color: #fffbf0;
}

/* Residence country and city selects */
.talent-registration-modal select[name="residence_country"],
.talent-registration-modal select[name="residence_city"] {
    font-weight: 500;
}

.talent-registration-modal select[name="residence_city"]:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* ID number input styling */
.talent-registration-modal input[name="id_number"] {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    color: #495057;
}

.talent-registration-modal input[name="id_number"]:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
}

/* Three columns identity section styling */
.talent-registration-modal .form-row.three-columns .form-group select,
.talent-registration-modal .form-row.three-columns .form-group input {
    font-size: 0.95rem;
}

/* Nationality and residence country select styling */
.talent-registration-modal select[name="nationality"],
.talent-registration-modal select[name="residence_country"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6c757d 50%),
                      linear-gradient(135deg, #6c757d 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
}

.talent-registration-modal select[name="nationality"]:focus,
.talent-registration-modal select[name="residence_country"]:focus {
    border-color: #d4af37;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Personal website input styling */
.talent-registration-modal input[name="personal_website"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.talent-registration-modal input[name="personal_website"]:focus {
    border-color: #17a2b8;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
    background-color: #f8fcff;
}

.talent-registration-modal input[name="personal_website"]:valid:not(:placeholder-shown) {
    border-color: #28a745;
    background-color: #f8fff9;
}

.talent-registration-modal input[name="personal_website"]:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Website icon styling */
.talent-registration-modal input[name="personal_website"] {
    padding-left: 45px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%2317a2b8" viewBox="0 0 16 16"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855A7.97 7.97 0 0 0 5.145 4H7.5V1.077zM4.09 4a9.267 9.267 0 0 1 .64-1.539 6.7 6.7 0 0 1 .597-.933A7.025 7.025 0 0 0 2.255 4H4.09zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.674a6.958 6.958 0 0 0-.656 2.5h2.49zM4.847 5a12.5 12.5 0 0 0-.338 2.5H7.5V5H4.847zM8.5 5v2.5h2.99a12.495 12.495 0 0 0-.337-2.5H8.5zM4.51 8.5a12.5 12.5 0 0 0 .337 2.5H7.5V8.5H4.51zm3.99 0V11h2.653c.187-.765.306-1.608.338-2.5H8.5zM5.145 12c.138.386.295.744.468 1.068.552 1.035 1.218 1.65 1.887 1.855V12H5.145zm.182 2.472a6.696 6.696 0 0 1-.597-.933A9.268 9.268 0 0 1 4.09 12H2.255a7.024 7.024 0 0 0 3.072 2.472zM3.82 11a13.652 13.652 0 0 1-.312-2.5h-2.49c.062.89.291 1.733.656 2.5H3.82zm6.853 3.472A7.024 7.024 0 0 0 13.745 12H11.91a9.27 9.27 0 0 1-.64 1.539 6.688 6.688 0 0 1-.597.933zM8.5 12v2.923c.67-.204 1.335-.82 1.887-1.855.173-.324.33-.682.468-1.068H8.5zm3.68-1h2.146c.365-.767.594-1.61.656-2.5h-2.49a13.65 13.65 0 0 1-.312 2.5zm.312-3.5h2.49c-.062-.89-.291-1.733-.656-2.5H12.18c.174.782.282 1.623.312 2.5zM11.27 2.461c.247.464.462.98.64 1.539h1.835a7.024 7.024 0 0 0-3.072-2.472c.218.284.418.598.597.933zM10.855 4a7.966 7.966 0 0 0-.468-1.068C9.835 1.897 9.17 1.282 8.5 1.077V4h2.355z"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    background-size: 16px 16px;
}

/* Form subsection styling (for languages within education section) */
.talent-registration-modal .form-subsection {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e9ecef;
}

.talent-registration-modal .form-subsection h5 {
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.talent-registration-modal .form-subsection h5::before {
    content: "🗣️";
    font-size: 1.2rem;
}

/* Education & Work section styling */
.talent-registration-modal select[name="education_level"],
.talent-registration-modal select[name="current_job"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #6c757d 50%),
                      linear-gradient(135deg, #6c757d 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                         calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px,
                     5px 5px;
    background-repeat: no-repeat;
}

.talent-registration-modal select[name="education_level"]:focus,
.talent-registration-modal select[name="current_job"]:focus {
    border-color: #28a745;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Education institution input styling */
.talent-registration-modal input[name="education_institution"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%2328a745" viewBox="0 0 16 16"><path d="M8.211 2.047a.5.5 0 0 0-.422 0L.366 5.745a.5.5 0 0 0 0 .909L1.5 7.094v3.781a.5.5 0 0 0 .302.456l6.5 2.81a.5.5 0 0 0 .396 0l6.5-2.81A.5.5 0 0 0 14.5 10.875V7.094l1.134-.44a.5.5 0 0 0 0-.909L8.211 2.047ZM13.5 7.614V10.5l-6 2.594L1.5 10.5V7.614l6.211 2.425a.5.5 0 0 0 .378 0L13.5 7.614Z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 16px 16px;
}

.talent-registration-modal input[name="education_institution"]:focus {
    border-color: #28a745;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Graduation year input styling */
.talent-registration-modal input[name="graduation_year"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 1px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23ffc107" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 16px 16px;
}

.talent-registration-modal input[name="graduation_year"]:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Work details groups styling (for inline work details) */
.talent-registration-modal #workplace-name-group,
.talent-registration-modal #job-title-group {
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(20px);
}

.talent-registration-modal #workplace-name-group.show,
.talent-registration-modal #job-title-group.show {
    opacity: 1;
    transform: translateX(0);
}

/* Workplace name and job title inputs */
.talent-registration-modal input[name="workplace_name"],
.talent-registration-modal input[name="job_title"] {
    background-color: #fff;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    color: #495057;
    transition: all 0.3s ease;
}

.talent-registration-modal input[name="workplace_name"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23007bff" viewBox="0 0 16 16"><path d="M2.5 14V1.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 .5.5V14H13V1a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v13H2.5zm2-13h1v2h-1V1zm0 3h1v2h-1V4zm0 3h1v2h-1V7zm3-6h1v2H7.5V1zm0 3h1v2H7.5V4zm0 3h1v2H7.5V7zm3-6h1v2h-1V1zm0 3h1v2h-1V4zm0 3h1v2h-1V7z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 16px 16px;
}

.talent-registration-modal input[name="job_title"] {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="%23dc3545" viewBox="0 0 16 16"><path d="M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1H7Zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-5.784 6A2.238 2.238 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.325 6.325 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1h4.216ZM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 15px) center;
    background-size: 16px 16px;
}

.talent-registration-modal input[name="workplace_name"]:focus,
.talent-registration-modal input[name="job_title"]:focus {
    border-color: #17a2b8;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
}

.talent-registration-modal .form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.talent-registration-modal .form-section h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

.talent-registration-modal .radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.talent-registration-modal .radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
}

.talent-registration-modal .radio-label:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.talent-registration-modal .radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #d4af37;
}

/* Form Groups */
.talent-registration-modal .form-group {
    display: flex;
    flex-direction: column;
}

.talent-registration-modal .form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.talent-registration-modal .form-group input,
.talent-registration-modal .form-group select,
.talent-registration-modal .form-group textarea {
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
    color: #333;
}

.talent-registration-modal .form-group input:focus,
.talent-registration-modal .form-group select:focus,
.talent-registration-modal .form-group textarea:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.talent-registration-modal .form-group input::placeholder,
.talent-registration-modal .form-group textarea::placeholder {
    color: #6c757d;
}

/* Required Field Indicator */
.required {
    color: #dc3545;
    font-weight: bold;
}

/* Verified Email Styles */
.verified-note {
    color: #28a745;
    font-size: 0.85rem;
    font-weight: 500;
    margin-top: 5px;
    display: block;
}

#verified-email {
    background: #f8f9fa;
    border-color: #28a745;
    color: #495057;
}

/* Phone Input Container with intl-tel-input */
.phone-input-container {
    display: block;
    width: 100%;
    position: relative;
}

/* intl-tel-input styling */
.iti {
    width: 100%;
    direction: ltr; /* Force LTR for the phone input */
}

.iti__flag-container {
    right: auto !important;
    left: 0 !important;
}

.iti__selected-flag {
    padding: 12px 15px;
    border-right: 2px solid #dee2e6 !important;
    border-left: none !important;
    background: #f8f9fa;
}

.iti__country-list {
    direction: ltr;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
}

.iti__country {
    padding: 8px 15px;
    font-size: 0.9rem;
}

.iti__country:hover {
    background: rgba(212, 175, 55, 0.1);
}

.iti__country.iti__highlight {
    background: rgba(212, 175, 55, 0.2);
}

#phone-number {
    width: 100%;
    padding: 12px 15px 12px 75px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    direction: ltr;
    text-align: left;
}

#phone-number:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.iti--separate-dial-code .iti__selected-flag {
    background: #f8f9fa;
    border-radius: 8px 0 0 8px;
}

.iti--separate-dial-code #phone-number {
    padding-left: 85px;
    border-radius: 0 8px 8px 0;
}

/* RTL adjustments for intl-tel-input */
[dir="rtl"] .iti {
    direction: ltr;
}

[dir="rtl"] .iti__flag-container {
    right: 0 !important;
    left: auto !important;
}

[dir="rtl"] .iti--separate-dial-code .iti__selected-flag {
    border-radius: 0 8px 8px 0;
    border-left: 2px solid #dee2e6 !important;
    border-right: none !important;
}

[dir="rtl"] .iti--separate-dial-code #phone-number {
    padding-right: 85px;
    padding-left: 15px;
    border-radius: 8px 0 0 8px;
}

.phone-hint {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
    direction: rtl;
    text-align: right;
    font-weight: 500;
}

/* Error styling for intl-tel-input */
.iti--error #phone-number {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.phone-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* Arabic search input styling */
.iti__country-list input[type="text"] {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.9rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-bottom: 10px;
}

/* تحسين عرض الأعلام من JSON - منع التكرار */
.country-flag-emoji {
    font-size: 16px;
    margin-left: 8px !important;
    display: inline-block !important;
    vertical-align: middle;
    min-width: 20px;
    text-align: center;
}

/* إخفاء الأعلام الأصلية من المكتبة في القائمة */
.iti__country .iti__flag[style*="display: none"] {
    display: none !important;
}

/* تحسين عرض العلم المختار - منع الأعلام المضاعفة */
.iti__selected-flag .iti__flag {
    background-image: none !important;
    background: rgba(212, 175, 55, 0.1) !important;
    width: auto !important;
    height: auto !important;
    margin-left: 8px !important;
    border-radius: 3px;
    padding: 2px 4px;
    font-size: 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

/* منع ظهور أي علم آخر في العلم المختار */
.iti__selected-flag .iti__flag::before,
.iti__selected-flag .iti__flag::after {
    display: none !important;
}

/* تحسين البحث العربي */
.iti__country-list {
    font-family: 'Cairo', sans-serif !important;
}

.iti__country:hover .country-flag-emoji {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* تحسين عرض كود الاتصال */
.iti__dial-code {
    color: #d4af37 !important;
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
}

.iti__selected-dial-code {
    color: #d4af37 !important;
    font-weight: 600 !important;
    font-family: 'Cairo', sans-serif !important;
    margin-right: 5px !important;
}

/* ترتيب الدول حسب JSON */
.iti__country-list {
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.iti__country:first-child {
    border-top: 2px solid #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

.iti__country:hover {
    background: rgba(212, 175, 55, 0.1) !important;
}

.iti__country-list input[type="text"]:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.iti__country-list input[type="text"]::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* Arabic country names styling */
.iti__country-name {
    font-family: 'Cairo', sans-serif !important;
    font-size: 0.9rem;
    font-weight: 400;
    direction: rtl;
    text-align: right;
    padding-right: 10px;
}

/* Improve country list appearance */
.iti__country-list {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #dee2e6;
    padding: 10px 0;
}

.iti__country:hover .iti__country-name {
    color: #d4af37;
    font-weight: 500;
}

.iti__country.iti__highlight .iti__country-name {
    color: #000;
    font-weight: 600;
}

/* Selected flag tooltip */
.iti__selected-flag[title] {
    cursor: pointer;
}

.iti__selected-flag:hover {
    background: #f0f0f0;
}

/* Improve dial code display */
.iti__selected-dial-code {
    font-family: 'Cairo', sans-serif;
    font-weight: 500;
    color: #495057;
}

/* RTL improvements for country list */
[dir="rtl"] .iti__country-name {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .iti__country {
    text-align: right;
}

/* Loading state for translations */
.iti-loading .iti__country-name {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.iti-loaded .iti__country-name {
    opacity: 1;
}

/* Social Media Section */
.social-media-section {
    margin-top: 25px;
}

.social-media-section h5 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 8px;
}

.social-accounts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.social-account-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
}

.social-account-item:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.1);
}

.platform-select {
    min-width: 160px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

.platform-select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.platform-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.username-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.username-input:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.1);
}

.remove-social-btn {
    padding: 8px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-social-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.add-social-account-btn {
    padding: 12px 20px;
    border: 2px dashed #d4af37;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.05);
    color: #d4af37;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    width: 100%;
}

.add-social-account-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #b8941f;
}

.add-social-account-btn i {
    font-size: 1rem;
}

/* Languages and Social Buttons */
.languages-buttons,
.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.language-btn,
.social-btn {
    padding: 8px 16px;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-btn:hover,
.social-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.language-btn.active,
.social-btn.active {
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    border-color: #d4af37;
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.language-btn.active:hover,
.social-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Animation for button selection */
.language-btn.active::before,
.social-btn.active::before {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 6px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}



/* Health and Travel Questions */
.questions-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 15px;
}

.question-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.question-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.question-label .required {
    color: #dc3545;
    margin-right: 4px;
}

.yes-no-group {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.yes-no-group .radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.yes-no-group .radio-label:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.yes-no-group .radio-label input[type="radio"] {
    margin: 0;
}

.yes-no-group .radio-label input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 600;
}

.details-box {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.details-box textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    resize: vertical;
    font-family: inherit;
}

.details-box textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.details-box textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Terms and Privacy */
.terms-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d4af37;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #d4af37;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.terms-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.next-step-btn,
.prev-step-btn,
.submit-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.next-step-btn,
.submit-btn {
    background: linear-gradient(45deg, #d4af37, #f4d03f);
    color: #000;
}

.next-step-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.prev-step-btn {
    background: #6c757d;
    color: white;
}

.prev-step-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .talent-registration-modal .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .questions-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .platform-input {
        flex-direction: column;
    }
    

    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .yes-no-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Phone input responsive */
    .phone-input-container {
        width: 100%;
    }
    
    .iti {
        width: 100%;
    }
    
    .iti--separate-dial-code #phone-number {
        padding-left: 75px !important;
    }
    
    [dir="rtl"] .iti--separate-dial-code #phone-number {
        padding-right: 75px !important;
        padding-left: 15px !important;
    }
    
    .iti__country-list {
        max-height: 150px;
        font-size: 0.9rem;
    }
    
    .phone-hint {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    /* Social media responsive */
    .social-account-item {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .platform-select {
        min-width: 100%;
    }
    
    .platform-icon {
        align-self: center;
    }
    
    .username-input {
        width: 100%;
    }
    
    .remove-social-btn {
        align-self: center;
        width: auto;
    }
} 