/* Contact Form Styles */
.contact-form {
    background: rgba(28, 28, 28, 0.8); /* More transparent background for card effect */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(240, 165, 0, 0.1);
    border-left: 3px solid var(--gold);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(240, 165, 0, 0.4);
    border: 1px solid rgba(240, 165, 0, 0.2);
    border-left: 3px solid var(--gold);
}

/* Adding golden glow to contact section when hovered */
section.contact.card:hover {
    box-shadow: 0 15px 40px rgba(240, 165, 0, 0.5);
    border: 1px solid rgba(240, 165, 0, 0.3);
    transform: translateY(-5px);
    background: rgba(26, 45, 66, 0.7);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
    animation: fadeIn 0.5s ease-out;
}

.form-header i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    z-index: 1;
    animation: enhancedPulse 3s infinite ease-in-out;
}

@keyframes enhancedPulse {
    0% {
        color: var(--gold);
        text-shadow: 0 0 5px rgba(240, 165, 0, 0.2);
        transform: scale(1);
    }
    50% {
        color: var(--gold-light);
        text-shadow: 0 0 15px rgba(240, 165, 0, 0.5);
        transform: scale(1.1);
    }
    100% {
        color: var(--gold);
        text-shadow: 0 0 5px rgba(240, 165, 0, 0.2);
        transform: scale(1);
    }
}

.form-header h2 {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 10px 0;
    animation: fadeIn 1s ease-out;
    position: relative;
    display: inline-block;
}

.form-header h2::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.form-header h2:hover::after {
    transform: scaleX(1);
}

.form-header p {
    color: var(--off-white);
    font-size: 0.9rem;
    opacity: 0.8;
    animation: fadeIn 1.2s ease-out;
    margin-top: 10px;
}

.form-group {
    margin-bottom: 20px;
    opacity: 0;
    animation: formFieldFadeIn 0.6s forwards;
    position: relative;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.2s; }
.form-group:nth-child(2) { animation-delay: 0.4s; }
.form-group:nth-child(3) { animation-delay: 0.6s; }
.form-group:nth-child(4) { animation-delay: 0.8s; }

@keyframes formFieldFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--off-white);
    font-size: 0.9rem;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 5px;
}

.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.3s ease;
}

.form-group:hover label {
    color: var(--gold);
    transform: translateX(3px);
}

.form-group:hover label::before {
    height: 80%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(13, 27, 42, 0.7); /* More transparent for card effect */
    border: 1px solid rgba(240, 165, 0, 0.2);
    border-radius: 4px;
    color: var(--off-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: rgba(240, 165, 0, 0.4);
    box-shadow: 0 0 5px rgba(240, 165, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(240, 165, 0, 0.3);
    transform: translateY(-3px);
    background: rgba(13, 27, 42, 0.8);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Add highlight effect on form field focus */
.form-group::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-50%);
}

.form-group:focus-within::after {
    width: 100%;
    opacity: 1;
}

.send-button {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeIn 1s forwards;
    animation-delay: 1s;
    opacity: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.send-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gold-light);
    transition: all 0.3s ease;
    z-index: -1;
}

.send-button i {
    font-size: 1.1rem;
    animation: floatPlane 3s infinite ease-in-out;
    transition: transform 0.3s ease;
}

@keyframes floatPlane {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(3px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.send-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(240, 165, 0, 0.4);
}

.send-button:hover i {
    transform: translateX(3px);
}

.send-button:hover::before {
    width: 100%;
}

.send-button:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 165, 0, 0.3);
}

/* Form message styles */
.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    opacity: 1;
    transform: translateY(0);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    opacity: 1;
    transform: translateY(0);
}

.form-message.error a {
    color: #f87171;
    text-decoration: underline;
}

.form-message.error a:hover {
    color: #fca5a5;
}

/* Button loading state */
.send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.send-button:disabled:hover {
    transform: none !important;
    box-shadow: 0 5px 15px rgba(240, 165, 0, 0.3);
}

/* Form Responsiveness */
@media (max-width: 768px) {
    .contact-form {
        padding: 25px;
    }
    
    .form-header i {
        font-size: 2.2rem;
    }
    
    .form-header h2 {
        font-size: 1.4rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .contact-form {
        padding: 20px;
        max-width: 90%;
    }
    
    .form-header i {
        font-size: 2rem;
    }
    
    .form-header h2 {
        font-size: 1.3rem;
    }
    
    .send-button {
        width: 100%;
        justify-content: center;
        padding: 12px 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}
