/* Enhanced Contact Form Styling */
.contact-form-container {
    background: #aeb6236b;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid #e0e54ead;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../../img/animation-elements/leaves-left-transparent.png') no-repeat left -50px bottom -50px,
                url('../../img/animation-elements/leaves-right-transparent.png') no-repeat right -50px top -50px;
    background-size: 200px, 200px;
    opacity: 0.2;
    pointer-events: none;
}

.contact-heading {
    text-align: center;
    margin-bottom: 40px;
}

.contact-heading h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-heading h2 span {
    color: var(--brand-primary);
}

.contact-heading p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: .6px solid rgba(255, 255, 255, 0.801);
    box-shadow: 0 0 1px rgba(255, 255, 255, 0.801);
    border-radius: 25px;
    font-size: 1em;
    color: #333;
    background: #6f732564;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px rgba(138, 143, 39, 0.1);
    background: #262803;
    color: #fff;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '→';
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover {
    background: #767a21;
    padding-right: 50px;
}

.submit-btn:hover::after {
    opacity: 1;
    transform: translateX(10px);
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Form feedback animations */
@keyframes inputFocus {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.form-control:focus {
    animation: inputFocus 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success message styling */
.success-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px;
}

.success-message.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.success-message i {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
    text-align: center;
    max-width: 80%;
    line-height: 1.6;
}

/* Loading state */
.submit-btn.loading {
    background: var(--brand-primary);
    pointer-events: none;
}

.submit-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .contact-heading h2 {
        font-size: 2em;
    }

    .submit-btn {
        width: 100%;
    }
}

/* Error state */
.form-control.error {
    border-color: #ff4444;
    background: rgba(255, 68, 68, 0.05);
}

.error-message {
    color: #ff4444;
    font-size: 0.9em;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-control.error + .error-message {
    display: block;
}

/* Field focus highlight effect */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--brand-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.form-group:focus-within::after {
    width: 100%;
} 