/* contact.css - Page-specific styles for the contact page */

.contact-hero {
    padding: 4rem 0 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.contact-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.contact-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-form-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.form-container {
    background: rgba(255, 255, 255, 0.05); /* Slightly different from features bg */
    backdrop-filter: blur(20px); /* Different blur */
    border: var(--border-light);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Different shadow */
}

.form-group {
    margin-bottom: 2rem;
    position: relative; /* For potential icon positioning or advanced label effects */
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--form-element-bg);
    border: var(--form-element-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    backdrop-filter: var(--blur-backdrop); /* Consistent blur for inputs */
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--form-element-focus-border);
    background: rgba(255, 255, 255, 0.15); /* Slightly lighter on focus */
    box-shadow: var(--form-element-focus-shadow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

#contactForm {
    text-align: center;
}
.submit-button { /* This is a .cta-button but with full width and specific margins/styles for the form */
    width: 100%;
    padding: 1.2rem 2rem; /* Slightly different padding than generic .cta-button */
    /* Inherits .cta-button styles from common.css for gradient, hover, etc. */
    /* Add any overrides or additional styles here if needed */
    margin-top: 1rem; /* Ensure some space above the button if .form-group doesn't provide enough */
}

.submit-button:active { /* Specific active state for form button if different from cta-button */
    transform: translateY(-1px);
}

.success-message {
    display: none; /* Hidden by default */
    background: rgba(34, 197, 94, 0.1); /* Greenish for success */
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    color: #22c55e; /* Success text color */
    text-align: center;
    backdrop-filter: var(--blur-backdrop);
}

.success-message.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.5s ease-out;
}

.success-message i { /* For potential icon in success message */
    margin-right: 0.5rem;
}

.success-message.error {
    background: rgba(239, 68, 68, 0.1); /* Reddish for error */
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444; /* Error text color */
}

.success-message.warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Honeypot field styling */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap; /* For good measure */
}


/* Specific responsive adjustments for contact.html */
@media (max-width: 768px) {
    .form-container {
        margin: 0 1rem; /* Add some horizontal margin on small screens */
        padding: 2rem;
    }
    
    .contact-hero {
        padding: 2rem 0 1rem;
    }
}
