/* contact.css - Styles for Contact Us page */

.contact-section {
    margin: 3rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.contact-card {
    background: rgba(255, 248, 240, 0.9);
    border-radius: 25px;
    box-shadow: 
        0 12px 40px rgba(139, 69, 19, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(160, 82, 45, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(160, 82, 45, 0.1);
    border-radius: 20px;
    background: repeating-linear-gradient(
        transparent,
        transparent 24px,
        rgba(160, 82, 45, 0.03) 25px
    );
    pointer-events: none;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #8b4513;
    font-family: 'EB Garamond', serif;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
}

.contact-header p {
    font-size: 1.2rem;
    color: #a0522d;
    font-style: italic;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    color: #8b4513;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'EB Garamond', serif;
}

.form-group label::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: #d2b48c;
    border-radius: 50%;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid rgba(160, 82, 45, 0.2);
    border-radius: 15px;
    background: rgba(255, 248, 240, 0.7);
    font-size: 1rem;
    font-family: inherit;
    color: #5d4037;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d2b48c;
    box-shadow: 0 0 0 3px rgba(210, 180, 140, 0.2);
    background: rgba(255, 248, 240, 0.9);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(139, 69, 19, 0.5);
    pointer-events: none;
}

.form-icon.message-icon {
    top: 4rem;
    transform: none;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading styles for form submission */
.submit-btn.loading {
    opacity: 0.8;
    cursor: wait !important;
    transform: scale(0.98);
}

.submit-btn.loading .btn-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Error states for validation */
.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
    background: rgba(255, 235, 235, 0.9) !important;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-family: 'Noto Serif Devanagari', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.error-message::before {
    content: '⚠️';
    font-size: 0.8rem;
}

/* Success states */
.form-group input.success,
.form-group textarea.success {
    border-color: #4caf50 !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2) !important;
}

/* Form Messages */
.form-message {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group input.error,
.form-group textarea.error {
    animation: shake 0.5s ease-in-out;
}

/* Enhanced form styling */
.form-group {
    position: relative;
}

.form-group label {
    font-weight: 600;
    color: #8b4513;
    margin-bottom: 0.8rem;
    display: block;
    font-family: 'Noto Serif Devanagari', serif;
}

/* Form help text styling - removed as help text is now only shown on errors */

/* Character counter for message field */
.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: #a0522d;
    margin-top: 0.3rem;
    font-family: 'EB Garamond', serif;
}

.char-counter.warning {
    color: #ff9800;
}

.char-counter.error {
    color: #d32f2f;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    }
    
    .form-icon {
        left: 0.8rem;
        font-size: 1rem;
    }
    
    .form-icon.message-icon {
        top: 3.5rem;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-header h1 {
        font-size: 1.8rem;
    }
    
    .contact-header p {
        font-size: 1rem;
    }
}
