/* ===============================
   CONTACT SECTION STYLING
================================= */

.contact-us-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: url('contact-bg.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 80px 10%;
    position: relative;
}

.contact-content {
    width: 50%;
    color: #fff;
    z-index: 2;
}

.contact-content h2 {
    font-size: 36px;
    color: #d4af37;
}

.contact-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #ddd;
}

/* ===============================
   CONTACT FORM STYLING
================================= */

.contact-form-container {
    position: relative;
    width: 50%;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 10px;
}

/* Form Inputs */
.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #d4af37; /* Default gold border */
    border-radius: 5px;
    background: #222;
    color: #fff;
    font-size: 16px;
    transition: border 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    outline: none;
    caret-color: #f7e29c; /* Light gold caret */
}

/* Floating Labels */
.form-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #aaa;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

/* Move label above input when focused or filled */
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 14px;
    color: #d4af37;
}

/* Hover & Focus Animation */
.form-group input:hover,
.form-group input:focus {
    border-color: #f7e29c; /* Light gold on hover/focus */
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* ===============================
   VALIDATION FEEDBACK
================================= */

/* Error State */
.input-error {
    border-color: red !important;
    animation: shake 0.3s ease-in-out;
}

/* Show Error Message */
.error-message {
    opacity: 0;
    color: red;
    font-size: 12px;
    margin-top: 5px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Show Error Message (Fade-in Effect) */
.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   SUCCESS MESSAGE STYLING
================================= */

.sent-message {
    font-size: 1.5rem;
    color: #d4af37;
    text-align: center;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Form Fade Out & Success Message */
.success-message {
    text-align: center;
    font-size: 1.5rem;
    color: #d4af37; /* Light gold */
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* ===============================
   ANIMATIONS
================================= */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}
