/* Contact Page Styles */

/* Header actions styling (matching compare-json.html) */
.header-actions {
    position: absolute;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #0052a3;
    background: rgba(0, 102, 204, 0.1);
}

body.dark-mode .nav-link {
    color: #6bb6ff;
}

body.dark-mode .nav-link:hover {
    color: #4da3ff;
    background: rgba(107, 182, 255, 0.1);
}

/* Header Email and Response Time Styles */
.header-email {
    font-size: 16px;
    color: #333;
    margin: 15px 0 10px 0;
    text-align: center;
}

.header-email a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.header-email a:hover {
    text-decoration: underline;
}

.header-response-time {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
    text-align: center;
}

body.dark-mode .header-email {
    color: #e0e0e0;
}

body.dark-mode .header-email a {
    color: #6bb6ff;
}

body.dark-mode .header-response-time {
    color: #b0b0b0;
}

/* Hide header description on mobile */
@media (max-width: 768px) {
    header p.header-description,
    header p.header-email,
    header p.header-response-time {
        display: block !important;
        font-size: 14px;
    }
    
    .header-actions {
        position: static;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    header p.header-description {
        display: none !important;
    }
}

.contact-main {
    padding: 30px;
    min-height: 500px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper,
.contact-info-wrapper {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 18px;
    font-weight: 600;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required {
    color: #dc3545;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #333;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.char-counter {
    margin-top: 4px;
    text-align: right;
}

.char-count-text {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.char-count-text.warning {
    color: #ff9800;
    font-weight: 500;
}

/* reCAPTCHA Styles */
.captcha-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.g-recaptcha {
    margin-bottom: 8px;
}

/* Dark mode support for reCAPTCHA */
body.dark-mode .g-recaptcha {
    filter: invert(1) hue-rotate(180deg);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

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

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.submit-btn {
    padding: 12px 24px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    min-width: 140px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 102, 204, 0.2);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-loader {
    display: none;
}

.submit-loader.hidden {
    display: none;
}

.submit-text.hidden {
    display: none;
}

.submit-loader:not(.hidden) {
    display: inline-block;
}

.success-message {
    padding: 12px 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

.success-message.hidden {
    display: none;
}

.error-message-form {
    padding: 12px 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 10px;
}

.error-message-form.hidden {
    display: none;
}

/* Privacy Notice */
.privacy-notice {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
    /* padding-top: 15px; */
    /* border-top: 1px solid #e0e0e0; */
    font-style: italic;
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.info-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-item p a {
    color: #0066cc;
    text-decoration: none;
}

.info-item p a:hover {
    text-decoration: underline;
}

/* Dark Mode Styles */
body.dark-mode .contact-form-wrapper,
body.dark-mode .contact-info-wrapper {
    background: #1a1a1a;
    border-color: #333;
}

body.dark-mode .contact-form-wrapper h2,
body.dark-mode .contact-info-wrapper h2 {
    color: #e0e0e0;
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

body.dark-mode .form-group input.error,
body.dark-mode .form-group textarea.error {
    border-color: #dc3545;
    background-color: #3d1f1f;
}

body.dark-mode .captcha-label {
    color: #e0e0e0;
}

body.dark-mode .info-item {
    border-bottom-color: #333;
}

body.dark-mode .info-item h3 {
    color: #e0e0e0;
}

body.dark-mode .info-item p {
    color: #b0b0b0;
}

body.dark-mode .info-item p a {
    color: #6bb6ff;
}

body.dark-mode .info-item p a:hover {
    color: #4da3ff;
    text-decoration: underline;
}

body.dark-mode .char-count-text {
    color: #b0b0b0;
}

body.dark-mode .char-count-text.warning {
    color: #ff9800;
}

body.dark-mode .success-message {
    background: #1e4620;
    color: #90ee90;
    border-color: #2d5a2f;
}

body.dark-mode .error-message-form {
    background: #3d1f1f;
    color: #ffb3b3;
    border-color: #4d2f2f;
}

body.dark-mode .privacy-notice {
    color: #b0b0b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-main {
        padding: 20px 15px;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 20px;
    }
    
    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .contact-form {
        gap: 18px;
    }
    
    .info-item {
        padding-bottom: 20px;
    }
    
    .info-item h3 {
        font-size: 16px;
    }
    
    .info-item p {
        font-size: 13px;
    }
}

/* Ensure footer links are visible - override the last-child rule from style.css */
.footer-bottom > div.footer-links {
    display: flex !important;
    visibility: visible !important;
}

.footer-bottom .footer-links {
    display: flex !important;
    visibility: visible !important;
}

.footer-bottom .footer-links a {
    display: inline-block !important;
    visibility: visible !important;
}

@media (max-width: 480px) {
    .contact-main {
        padding: 15px 10px;
    }
    
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 15px;
    }
    
    .contact-form-wrapper h2,
    .contact-info-wrapper h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
    
    .submit-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .info-item h3 {
        font-size: 15px;
    }
    
    .info-item p {
        font-size: 12px;
    }
}

