/* Contact Form Styles */
.contact-form {
    margin-top: 30px;
}

.contact-form h4 {
    color: var(--color-one);
    font-family: var(--font-family-TheSeasons);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-form .text {
    color: rgb(216, 216, 216);
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact-form .form-group:last-child {
    margin-bottom: 0;
}

/* Input with icon styling */
.contact-form .input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.contact-form .input-icon i {
    position: absolute;
    left: 15px;
    color: var(--color-one);
    font-size: 16px;
    z-index: 2;
    transition: all 0.3s ease;
}

.contact-form .input-icon input,
.contact-form .input-icon textarea {
    padding-left: 45px;
}

.contact-form .input-icon input:focus + i,
.contact-form .input-icon textarea:focus + i {
    color: var(--color-one);
    transform: scale(1.1);
}

.contact-form .input-icon input:focus,
.contact-form .input-icon textarea:focus {
    padding-left: 45px;
}

.contact-form .input-icon input:focus ~ i,
.contact-form .input-icon textarea:focus ~ i {
    color: var(--color-one);
    transform: scale(1.1);
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 14px;
    font-family: var(--font-family-Urbanist);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-one);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(109, 145, 119, 0.1);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    font-style: italic;
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: var(--font-family-Urbanist);
}

/* hCaptcha styling */
.contact-form .h-captcha {
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

/* Submit button styling */
.contact-form .theme-btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--color-one), #5a7a65);
    border: none;
    padding: 15px 25px;
}

.contact-form .theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 145, 119, 0.4);
    background: linear-gradient(135deg, #5a7a65, var(--color-one));
}

.contact-form .theme-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    background: #ccc;
}

.contact-form .theme-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.contact-form .theme-btn .btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Success/Error messages */
.contact-message {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.contact-message.success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-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);
    }
}

/* Loading state */
.contact-form .theme-btn.loading {
    pointer-events: none;
}

.contact-form .theme-btn.loading .btn-wrap {
    opacity: 0.7;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 20px;
        margin: 0 -10px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .contact-form h4 {
        font-size: 20px;
    }
    
    .contact-form .theme-btn {
        max-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper {
        padding: 15px;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 10px 12px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .contact-form input,
    .contact-form textarea {
        background: rgba(255, 255, 255, 0.95);
        color: #333;
    }
    
    .contact-form input:focus,
    .contact-form textarea:focus {
        background: rgba(255, 255, 255, 1);
    }
}

/* Animation for form elements */
.contact-form .form-group {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.contact-form .form-group:nth-child(1) { animation-delay: 0.1s; }
.contact-form .form-group:nth-child(2) { animation-delay: 0.2s; }
.contact-form .form-group:nth-child(3) { animation-delay: 0.3s; }
.contact-form .form-group:nth-child(4) { animation-delay: 0.4s; }
.contact-form .form-group:nth-child(5) { animation-delay: 0.5s; }
.contact-form .form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
