/* contact.css - Modern Professional Style */

.contact-form-container {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 1.8rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

.contact-form h1 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* Form Group Styling */
.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.contact-form label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: #4a5568;
    font-weight: 500;
}

/* Input Fields */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #4a5568;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Focus Effects */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #4299e1;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* Placeholder Styling */
.contact-form ::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* Button Styling */
.form-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.submit-btn {
    background-color: #4299e1;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.submit-btn:hover {
    background-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(66, 153, 225, 0.25);
}

/* Error Styling */
.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
}

.input-error {
    border-color: #e53e3e !important;
    background-color: #fff5f5;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.2);
}

/* Loading State */
.submit-btn.loading {
    position: relative;
    pointer-events: none;
    padding-right: 2.8rem;
}

.submit-btn.loading::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.8rem;
        margin: 1rem;
    }
    
    .contact-form h1 {
        font-size: 1.8rem;
    }
    
    .submit-btn {
        width: 100%;
    }
}

/* Captcha Refresh Button */
.captcha-refresh-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.refresh-captcha-btn {
    background-color: #f3f4f6;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.refresh-captcha-btn:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.refresh-captcha-btn:active {
    transform: translateY(1px);
}

/* Ensure the captcha image and input don't take up all the space */
.captcha-container img {
    max-width: 100%;
    height: auto;
}

.captcha-container input {
    max-width: 150px;
}

@media (max-width: 576px) {
    .captcha-refresh-wrapper {
        flex-direction: column;
    }
    
    .refresh-captcha-btn {
        margin-top: 10px;
        align-self: flex-start;
    }
}