/* Contact Page Styles */

/* Hero Section */
.contact-hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 20px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactdots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23contactdots)"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.highlight-icon {
    font-size: 1.2rem;
}

/* Package Summary */
.package-summary {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 2px solid var(--primary-orange);
}

.summary-content h2 {
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.package-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
}

.package-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label {
    font-weight: 600;
    color: var(--secondary-blue);
    min-width: 80px;
}

.value {
    color: var(--dark-text);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.package-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px;
    text-align: center;
}

.total-label {
    font-size: 1rem;
    opacity: 0.9;
}

.total-amount {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.package-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--dark-text);
    opacity: 0.8;
    font-style: italic;
}

/* Contact Form Section */
.contact-form-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
}

.form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.form-intro h2 {
    color: var(--secondary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.form-intro p {
    font-size: 1.1rem;
    color: var(--dark-text);
    opacity: 0.8;
}

/* Simplified Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    font-family: inherit;
    color: var(--dark-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(58, 123, 211, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Math Captcha - FIXED STYLING */
.captcha-group {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.captcha-question {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--secondary-blue);
    font-weight: 600;
}

.captcha-input {
    max-width: 150px;
    background: white !important;
    color: var(--dark-text) !important;
    border: 2px solid #e0e0e0 !important;
}

.captcha-input:focus {
    background: var(--secondary-blue) !important;
    color: white !important;
    border-color: var(--secondary-blue) !important;
}

.captcha-input::placeholder {
    color: #999 !important;
}

/* Honeypot field (hidden) */
.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 171, 2, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.submit-note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--dark-text);
    opacity: 0.7;
}

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card,
.pricing-reminder,
.next-steps {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-card h3,
.pricing-reminder h3,
.next-steps h3 {
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* Contact Methods */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.method-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-content h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 1.1rem;
}

.method-content p {
    margin-bottom: 0.5rem;
    color: var(--secondary-blue);
    font-weight: 500;
}

.response-time {
    font-size: 0.85rem;
    color: var(--dark-text);
    opacity: 0.7;
}

/* Pricing Points */
.pricing-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.point-icon {
    font-size: 1.1rem;
    color: var(--primary-orange);
    flex-shrink: 0;
}

/* Next Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-blue);
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark-text);
    opacity: 0.8;
    line-height: 1.4;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal.active {
    opacity: 1;
    visibility: visible;
}

.success-modal .modal-content {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.success-modal.active .modal-content {
    transform: scale(1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #28a745;
}

.success-modal h3 {
    color: var(--secondary-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.success-modal p {
    color: var(--dark-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.cta-button-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: var(--secondary-blue);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-blue);
    font-size: 1rem;
}

.cta-button-secondary:hover {
    background: var(--secondary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Error States */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

/* Spam Protection Notice */
.spam-notice {
    background: rgba(58, 123, 211, 0.1);
    border: 1px solid var(--secondary-blue);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--secondary-blue);
}

/* FIXED: Auth Components Styling - Match other pages */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 450px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.auth-modal.active .auth-modal-content {
    transform: scale(1);
}

.auth-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--dark-text);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.auth-close-btn:hover {
    background: var(--bg-light);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--secondary-blue);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--dark-text);
    opacity: 0.8;
}

/* FIXED: Auth form styling to match other pages */
.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.9rem;
}

.auth-form .form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    color: var(--dark-text);
    font-family: inherit;
}

.auth-form .form-group input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(58, 123, 211, 0.1);
}

.auth-form .form-group small {
    font-size: 0.8rem;
    color: var(--dark-text);
    opacity: 0.6;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.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;
}

.auth-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.auth-btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.auth-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 171, 2, 0.3);
}

.auth-btn-secondary {
    background: white;
    color: var(--secondary-blue);
    border: 2px solid var(--secondary-blue);
}

.auth-btn-secondary:hover {
    background: var(--secondary-blue);
    color: white;
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    display: none;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: var(--dark-text);
    opacity: 0.8;
    font-size: 0.9rem;
}

.auth-error {
    background: #ffe6e6;
    border: 1px solid #ff4757;
    color: #ff4757;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.auth-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--secondary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 10001;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.auth-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-form-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-highlights {
        flex-direction: column;
        align-items: center;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .form-intro h2 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .package-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .auth-modal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 3rem 1rem;
    }
    
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .contact-sidebar > * {
        padding: 1.5rem;
    }
    
    .success-modal .modal-content {
        padding: 2rem;
    }
    
    .auth-modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Loading Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 0.5rem;
}