/* ===== TourContact — layout generale ===== */
.tourcontact-wrapper {
    max-width: 680px;
    margin: 3rem auto;
    padding: 0 1rem;
}

/* ===== Intestazione tour ===== */
.tourcontact-tour-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tourcontact-tour-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg, #1a1a2e);
    margin-bottom: 0.25rem;
}

.tourcontact-tour-subtitle {
    font-size: 1rem;
    color: #666;
}

/* ===== Card contenitore ===== */
.tourcontact-card {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

/* ===== Form ===== */
.tourcontact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.35rem;
}

.tourcontact-form .form-control {
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    transition: border-color 0.2s ease;
}

.tourcontact-form .form-control:focus {
    border-color: var(--primary-green, #28a745);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.tourcontact-form textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

.tourcontact-required {
    color: #dc3545;
    margin-left: 2px;
}

.tourcontact-privacy-row {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.tourcontact-error-msg {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.tourcontact-error-msg.visible {
    display: block;
}

/* ===== Pannello OTP ===== */
.otp-container {
    max-width: 100%;
}

.otp-inputs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.otp-input {
    width: 58px;
    height: 66px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.otp-input:focus {
    border-color: var(--primary-green, #28a745);
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.12);
}

.otp-input.filled {
    border-color: var(--primary-green, #28a745);
    background-color: #f0fdf4;
}

.otp-email-display {
    background-color: #f0fdf4;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #166534;
    font-weight: 600;
    word-break: break-all;
}

.otp-resend-link {
    color: var(--primary-green, #28a745);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.otp-resend-link:hover {
    text-decoration: underline;
}

.otp-error-msg {
    color: #dc3545;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    display: none;
}

.otp-error-msg.visible {
    display: block;
}

/* ===== Pannello successo ===== */
.tourcontact-success {
    text-align: center;
    padding: 2rem 0;
}

.tourcontact-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-green, #28a745), #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.tourcontact-success-icon i {
    font-size: 2rem;
    color: white;
}

.tourcontact-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 0.75rem;
}

.tourcontact-success-message {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Icon circle per OTP ===== */
.icon-circle {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-green, #28a745), #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-circle i {
    font-size: 2rem;
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
    .tourcontact-wrapper {
        margin: 1.5rem auto;
    }

    .tourcontact-card {
        padding: 1.25rem;
    }

    .otp-input {
        width: 46px;
        height: 54px;
        font-size: 1.5rem;
    }

    .otp-inputs {
        gap: 0.5rem;
    }
}
