/**
 * DarMatch Registration Page Styles
 * Styles pour la page d'inscription unifiée
 */

/* ==========================================================================
   Layout Principal
   ========================================================================== */

.darmatch-register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f6f6f6 50%, #ebebeb 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.register-container {
    width: 100%;
    max-width: 700px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

/* ==========================================================================
   Header
   ========================================================================== */

.register-header {
    background: linear-gradient(135deg, #bf8949, #d39954);
    padding: 30px;
    text-align: center;
    color: #fff;
    border-radius: 20px 20px 0 0;
}

.register-logo {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 5px;
    letter-spacing: -1px;
}

.register-tagline {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* ==========================================================================
   Barre de Progression
   ========================================================================== */

.register-progress {
    padding: 25px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #E74C3C, #C0392B);
    border-radius: 3px;
    transition: width 0.4s ease;
    width: 33.33%;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
}

.progress-label {
    font-size: 15px;
    color: #999;
    font-weight: 500;
    transition: color 0.3s;
}

.progress-label.active {
    color: #E74C3C;
}

.progress-label.completed {
    color: #27AE60;
}

/* ==========================================================================
   Formulaire
   ========================================================================== */

.register-form {
    padding: 30px;
}

.register-step {
    display: none;
}

.register-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.step-content {
    margin-bottom: 30px;
}

.step-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px;
    text-align: center;
}

.step-description {
    font-size: 17px;
    color: #666;
    margin: 0 0 25px;
    text-align: center;
}

/* ==========================================================================
   Choix du Rôle
   ========================================================================== */

.role-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.role-card {
    cursor: pointer;
}

.role-card input[type="radio"] {
    display: none;
}

.role-card .card-content {
    padding: 25px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

.role-card:hover .card-content {
    border-color: #E74C3C;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.15);
}

.role-card input:checked + .card-content {
    border-color: #E74C3C;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.05));
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.2);
}

.role-card .card-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.role-card .card-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 10px;
}

.role-card .card-desc {
    font-size: 16px;
    color: #666;
    display: block;
    margin-bottom: 15px;
    line-height: 1.5;
}

.role-card .card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.role-card .card-features li {
    font-size: 15px;
    color: #666;
    padding: 6px 0;
    padding-left: 22px;
    position: relative;
}

.role-card .card-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27AE60;
    font-weight: bold;
}

/* ==========================================================================
   Champs de Formulaire
   ========================================================================== */

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

.form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-control {
    width: 100% !important;
    padding: 16px 18px !important;
    font-size: 17px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    transition: all 0.3s;
    outline: none;
    box-sizing: border-box;
    line-height: 1.5 !important;
}

.form-control::placeholder {
    font-size: 16px;
    color: #999;
}

.form-control:focus {
    border-color: #E74C3C;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-control.error {
    border-color: #E74C3C;
    background: #fff5f5;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Password Field */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover {
    opacity: 1;
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s;
}

.password-strength.weak::after {
    width: 33%;
    background: #E74C3C;
}

.password-strength.medium::after {
    width: 66%;
    background: #F39C12;
}

.password-strength.strong::after {
    width: 100%;
    background: #27AE60;
}

/* Terms Checkbox */
.terms-group {
    margin-top: 25px;
}

.darmatch-register-page .checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer;
    font-size: 16px;
    color: #444;
    gap: 15px;
    position: relative;
}

.darmatch-register-page .checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.darmatch-register-page .checkbox-label .checkmark {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border: 2px solid #bbb !important;
    border-radius: 6px !important;
    background: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

.darmatch-register-page .checkbox-label .checkmark::after {
    content: "" !important;
    display: none;
    width: 7px;
    height: 14px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

.darmatch-register-page .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #E74C3C !important;
    border-color: #E74C3C !important;
}

.darmatch-register-page .checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    display: block !important;
}

.darmatch-register-page .checkbox-label .label-text {
    line-height: 2;
    font-size: 15px;
    color: #555;
}

.darmatch-register-page .checkbox-label .label-text a {
    color: #E74C3C;
    text-decoration: none;
    font-weight: 600;
}

.darmatch-register-page .checkbox-label .label-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #bf8949, #d39954);
    color: #fff;
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.35);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #eee;
}

.btn-success {
    background: linear-gradient(135deg, #27AE60, #219A52);
    color: #fff;
    flex: 1;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid #E74C3C;
    color: #E74C3C;
}

.btn-outline:hover {
    background: #E74C3C;
    color: #fff;
}

.btn-full {
    width: 100%;
}

.btn-icon {
    font-size: 16px;
}

.btn:disabled,
.btn.btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Step Footer
   ========================================================================== */

.step-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.step-footer p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.login-link {
    color: #E74C3C;
    font-weight: 600;
    text-decoration: none;
}

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

/* ==========================================================================
   Messages
   ========================================================================== */

.register-messages {
    margin-bottom: 20px;
}

.register-messages:empty {
    display: none;
}

.message {
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

.message-error {
    background: #fff5f5;
    color: #E74C3C;
    border: 1px solid #E74C3C;
}

.message-success {
    background: #f0fff4;
    color: #27AE60;
    border: 1px solid #27AE60;
}

/* ==========================================================================
   Wizard Steps (Style, Passions, etc.)
   ========================================================================== */

.wizard-host-steps,
.wizard-traveler-steps {
    display: none;
}

.wizard-host-steps.active,
.wizard-traveler-steps.active {
    display: block;
}

.wizard-inner-steps {
    position: relative;
}

.wizard-sub-step {
    display: none;
}

.wizard-sub-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Style Cards */
.style-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.style-card {
    cursor: pointer;
}

.style-card input {
    display: none;
}

.style-card .card-content {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.style-card:hover .card-content {
    border-color: #E74C3C;
    transform: translateY(-2px);
}

.style-card input:checked + .card-content {
    border-color: #E74C3C;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(192, 57, 43, 0.05));
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.style-card .card-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 12px;
}

.style-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.style-card .card-desc {
    font-size: 14px;
    color: #666;
}

/* Passion Cards */
.passion-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.passion-card {
    cursor: pointer;
}

.passion-card input {
    display: none;
}

.passion-card .card-content {
    padding: 15px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
}

.passion-card:hover .card-content {
    border-color: #E74C3C;
}

.passion-card input:checked + .card-content {
    border-color: #E74C3C;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(192, 57, 43, 0.1));
}

.passion-card .card-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

.passion-card .card-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.passion-counter {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 15px;
}

/* Schedule Cards */
.schedule-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.schedule-card {
    cursor: pointer;
}

.schedule-card input {
    display: none;
}

.schedule-card .card-content {
    padding: 25px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.schedule-card:hover .card-content {
    border-color: #3498DB;
}

.schedule-card input:checked + .card-content {
    border-color: #3498DB;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
}

.schedule-card .card-icon {
    font-size: 38px;
    display: block;
    margin-bottom: 12px;
}

.schedule-card .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.schedule-card .card-desc {
    font-size: 14px;
    color: #666;
}

/* Language Options */
.language-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.language-checkbox {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.language-checkbox:hover {
    border-color: #E74C3C;
}

.language-checkbox input {
    display: none;
}

.language-checkbox input:checked ~ .checkmark {
    background: #E74C3C;
    border-color: #E74C3C;
}

.language-checkbox input:checked ~ .checkmark::after {
    content: "✓";
    color: #fff;
}

.language-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s;
}

.language-checkbox .flag {
    font-size: 24px;
    margin-right: 12px;
}

.language-checkbox .lang-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.other-language {
    margin-top: 15px;
}

.other-language label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

/* Photo Upload */
.photo-upload-zone {
    text-align: center;
}

.photo-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px dashed #e0e0e0;
    margin: 0 auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    overflow: hidden;
    background: #f9f9f9;
}

.photo-preview:hover {
    border-color: #E74C3C;
    background: #fff5f5;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview .placeholder-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.photo-preview .placeholder-text {
    font-size: 14px;
    color: #999;
}

.hidden-input {
    display: none;
}

.upload-btn {
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Lodging Options */
.lodging-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lodging-card {
    cursor: pointer;
}

.lodging-card input {
    display: none;
}

.lodging-card .card-content {
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
}

.lodging-card:hover .card-content {
    border-color: #27AE60;
}

.lodging-card input:checked + .card-content {
    border-color: #27AE60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(33, 154, 82, 0.1));
}

.lodging-card .card-icon {
    font-size: 38px;
    display: block;
    margin-bottom: 12px;
}

.lodging-card .card-title {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 6px;
}

.lodging-card .card-desc {
    font-size: 14px;
    color: #666;
}

.other-lodging {
    margin-top: 20px;
}

/* Pitch Options */
.pitch-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pitch-card {
    cursor: pointer;
}

.pitch-card input {
    display: none;
}

.pitch-card .card-content {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
}

.pitch-card:hover .card-content {
    border-color: #9B59B6;
}

.pitch-card input:checked + .card-content {
    border-color: #9B59B6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(142, 68, 173, 0.1));
}

.pitch-card .card-icon {
    font-size: 32px;
    margin-right: 18px;
}

.pitch-card .pitch-text {
    font-size: 16px;
    color: #333;
    font-style: italic;
}

.custom-pitch-field {
    margin-top: 20px;
}

.custom-pitch-field label {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    display: block;
    margin-bottom: 10px;
}

.custom-pitch-field textarea {
    resize: none;
    font-size: 16px;
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

/* Wizard Sub Navigation */
.wizard-sub-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* ==========================================================================
   Modal de Succès
   ========================================================================== */

.darmatch-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-content h2 {
    font-size: 24px;
    color: #333;
    margin: 0 0 10px;
}

.modal-message {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px;
}

.modal-tips {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 25px;
}

.modal-tips h4 {
    font-size: 14px;
    color: #333;
    margin: 0 0 10px;
}

.modal-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-tips li {
    font-size: 13px;
    color: #666;
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.modal-tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #E74C3C;
}

/* ==========================================================================
   reCAPTCHA
   ========================================================================== */

.recaptcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.recaptcha-container .recaptcha-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.recaptcha-container .g-recaptcha-wrapper {
    display: flex;
    justify-content: center;
}

.recaptcha-container .g-recaptcha,
.recaptcha-container .g-recaptcha-wrapper > div {
    transform-origin: center center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .darmatch-register-page {
        padding: 20px 15px;
    }

    .register-container {
        border-radius: 15px;
    }

    .register-header {
        padding: 25px 20px;
    }

    .register-logo {
        font-size: 28px;
    }

    .register-progress {
        padding: 20px;
    }

    .register-form {
        padding: 25px 20px;
    }

    .role-options {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .style-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .passion-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-options {
        grid-template-columns: 1fr;
    }

    .language-options {
        grid-template-columns: 1fr;
    }

    .lodging-options {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column;
    }

    .btn-secondary {
        order: 2;
    }

    .btn-primary,
    .btn-success {
        order: 1;
    }

    .wizard-sub-navigation {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .register-logo {
        font-size: 24px;
    }

    .step-title {
        font-size: 20px;
    }

    .passion-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .passion-card .card-content {
        padding: 12px 8px;
    }

    .passion-card .card-icon {
        font-size: 24px;
    }

    .passion-card .card-title {
        font-size: 11px;
    }
}

/* ==========================================================================
   jQuery UI Datepicker Custom Styles
   ========================================================================== */

.ui-datepicker {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 15px;
    z-index: 99999 !important;
    position: absolute !important;
}

/* Fix form-group position for datepicker */
.form-group {
    position: relative;
}

.ui-datepicker-header {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
}

.ui-datepicker-title {
    color: #fff;
    font-weight: 600;
}

.ui-datepicker-title select {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 3px;
}

.ui-datepicker-title select option {
    background: #fff;
    color: #333;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer;
    top: 12px !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

.ui-datepicker-calendar {
    margin-top: 10px;
}

.ui-datepicker-calendar th {
    color: #666;
    font-weight: 600;
    font-size: 12px;
    padding: 10px 5px;
}

.ui-datepicker-calendar td {
    padding: 2px;
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.ui-datepicker-calendar td a:hover {
    background: #f0f0f0;
}

.ui-datepicker-calendar .ui-state-active {
    background: linear-gradient(135deg, #E74C3C, #C0392B) !important;
    color: #fff !important;
    border: none !important;
}

.ui-datepicker-calendar .ui-state-highlight {
    background: #f8f9fa;
    border: 1px solid #E74C3C;
}

/* Datepicker input field */
input.datepicker {
    cursor: pointer;
    background: #fff url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>') no-repeat right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* ==========================================================================
   Email Verification Page
   ========================================================================== */

.darmatch-verify-page,
.darmatch-confirm-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #E74C3C 100%);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verify-container,
.confirm-container {
    width: 100%;
    max-width: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    padding: 50px 40px;
    text-align: center;
}

.verify-icon,
.confirm-icon {
    margin-bottom: 30px;
}

.verify-icon svg,
.confirm-icon svg {
    display: inline-block;
}

.verify-title,
.confirm-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
}

.confirm-title.success {
    color: #27AE60;
}

.confirm-title.error {
    color: #E74C3C;
}

.verify-message,
.confirm-message {
    font-size: 17px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 35px;
}

.verify-message strong {
    color: #E74C3C;
}

/* Verification Steps */
.verify-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.verify-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.verify-step:last-child {
    border-bottom: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #E74C3C, #C0392B);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    color: #555;
    text-align: left;
}

/* Verify Info */
.verify-info {
    background: #fff8e6;
    border: 1px solid #ffeeba;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.verify-info p {
    margin: 0 0 10px;
    color: #856404;
    font-size: 15px;
}

.verify-info ul {
    margin: 0 0 20px;
    padding-left: 20px;
}

.verify-info ul li {
    color: #856404;
    font-size: 14px;
    margin-bottom: 5px;
}

.resend-email-btn {
    width: 100%;
    margin-top: 15px;
}

.resend-message {
    margin-top: 15px;
}

.resend-message .message {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
}

.resend-message .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.resend-message .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Verify Footer */
.verify-footer {
    color: #999;
    font-size: 14px;
}

.verify-footer a {
    color: #E74C3C;
    text-decoration: none;
    font-weight: 500;
}

.verify-footer a:hover {
    text-decoration: underline;
}

/* Confirmation Actions */
.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.confirm-actions .btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.confirm-icon.success svg {
    animation: successPulse 0.6s ease-out;
}

.confirm-icon.error svg {
    animation: errorShake 0.5s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Responsive */
@media (max-width: 600px) {
    .verify-container,
    .confirm-container {
        padding: 35px 25px;
    }

    .verify-title,
    .confirm-title {
        font-size: 26px;
    }

    .verify-message,
    .confirm-message {
        font-size: 15px;
    }
}

/* ==========================================================================
   Language Modal
   ========================================================================== */

.btn-add-language {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-top: 15px;
    border: 2px dashed #ddd;
    background: transparent;
    color: #666;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-language:hover {
    border-color: #bf8949;
    color: #bf8949;
    background: rgba(191, 137, 73, 0.05);
}

.selected-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.selected-language-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e8f4ea;
    color: #2d6a4f;
    border-radius: 20px;
    font-size: 13px;
}

.selected-language-tag .remove-language {
    background: none;
    border: none;
    color: #2d6a4f;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
}

.selected-language-tag .remove-language:hover {
    color: #c0392b;
}

.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.language-modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.language-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.language-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.language-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.language-modal-close:hover {
    color: #333;
}

.language-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

.language-search {
    margin-bottom: 16px;
}

.language-search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.language-search-input:focus {
    outline: none;
    border-color: #bf8949;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.language-modal-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}

.language-modal-item:hover {
    background: #f8f8f8;
    border-color: #ddd;
}

.language-modal-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #bf8949;
}

.language-modal-item input[type="checkbox"]:checked + .flag + .lang-name {
    font-weight: 600;
}

.language-modal-item .flag {
    font-size: 20px;
}

.language-modal-item .lang-name {
    font-size: 14px;
    color: #333;
}

.language-modal-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.language-modal-confirm {
    padding: 10px 24px;
    background: #bf8949;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.language-modal-confirm:hover {
    background: #a87a3f;
}

@media (max-width: 480px) {
    .language-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Select2 - City Selection
   ========================================================================== */

.form-group-full {
    width: 100%;
    margin-bottom: 20px;
}

.select2-cities + .select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 50px;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #bf8949;
    box-shadow: 0 0 0 3px rgba(191, 137, 73, 0.1);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    color: #333;
    padding-left: 0;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 10px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #bf8949 transparent transparent transparent;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #bf8949 transparent;
}

/* Dropdown */
.select2-dropdown {
    border: 2px solid #bf8949;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.select2-container--default .select2-search--dropdown {
    padding: 12px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #bf8949;
    outline: none;
}

/* Optgroups (Régions) */
.select2-results__group {
    padding: 10px 15px;
    background: linear-gradient(135deg, #bf8949, #d39954);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Options */
.select2-container--default .select2-results__option {
    padding: 10px 20px;
    font-size: 15px;
    transition: background 0.2s;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: rgba(191, 137, 73, 0.1);
    color: #bf8949;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #bf8949;
    color: #fff;
}

/* Scrollbar in dropdown */
.select2-results__options {
    max-height: 300px;
    overflow-y: auto;
}

.select2-results__options::-webkit-scrollbar {
    width: 8px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #bf8949;
    border-radius: 4px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: #a87a3f;
}
