/* TourRadar-Style Brochure Download Modal */
.brochure-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.brochure-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 24px 30px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.modal-body {
    padding: 30px;
}

.brochure-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.brochure-icon {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

.brochure-info h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.brochure-info p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.email-section {
    margin-bottom: 25px;
}

.email-form-section {
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.email-section h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 8px;
    display: none;
}

.error-message.show {
    display: block;
}

.download-btn-modal {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.download-btn-modal:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.download-btn-modal:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message {
    display: none;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 28px;
}

.success-message h3 {
    color: #1f2937;
    font-size: 22px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.success-message p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.privacy-note {
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.privacy-note p {
    margin: 0;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.4;
}

.privacy-note .icon {
    display: inline-block;
    margin-right: 8px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-body {
        padding: 25px 20px;
    }
    
    .modal-title {
        font-size: 22px;
    }
    
    .brochure-preview {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .brochure-info h4 {
        font-size: 16px;
    }
}

/* Animation for form submission */
.form-submitting .form-input {
    pointer-events: none;
    opacity: 0.7;
}

.form-submitting .download-btn-modal .btn-text {
    opacity: 0;
}

.form-submitting .download-btn-modal .btn-loading {
    display: block;
}