/* Global Reset */

body{
    font-family: 'Inter', sans-serif;
}
/* Contact Section */
.contact-section {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align form to the top */
    padding: 60px 20px 20px; /* Adjusted padding */
    min-height: 100vh; /* Allow full screen height */
    background-color: #ffffff;
    overflow: visible; /* Ensure content can overflow if necessary */
    padding-top:300px;
    padding-bottom:110px;
    
}


/* Form Container */
.form-container {
    background-color: #ffffff;
    padding: 50px;
    border-radius: 18px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    z-index: 0;
    position: relative; /* Keep it in normal flow */
    margin-top: 15px; /* Space between header and form */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
   
.floating-label input:focus,
.floating-label textarea:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15); /* subtle blue halo */
}


/* Title and Subtitle */
.title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.5px;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    color: #475569;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Input Groups (Floating Labels) */
.contact-form .input-group {
    position: relative;
    margin-bottom: 28px;
}

.floating-label input,
.floating-label textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 1rem;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.floating-label label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background: #ffffff;
    padding: 0 6px;
    font-size: 1rem;
    color: #64748b;
    transition: 0.2s ease-in-out;
    pointer-events: none;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    color: #2563eb;
}

.floating-label input:focus,
.floating-label textarea:focus {
    border-color: #3b82f6;
    background-color: tr;
    outline: none;
}


input, select, textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
    appearance: none;
  }
  
  select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 50%;
    background-size: 24px;
  }
  
  /* Make label float when select is focused or has a valid value */
.floating-label select:focus + label,
.floating-label select:valid + label {
    top: -10px;       /* same as input floating label */
    left: 12px;       /* same as input floating label */
    font-size: 0.8rem;
    color: #2563eb;   /* same blue color for focus */
}

/* Adjust label positioning over select */
.floating-label select {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.3s ease;
    appearance: none; /* Removes native arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
    background-size: 16px;
    cursor: pointer;
}
.floating-label select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    outline: none;
}
/* When a valid selection is made */
.floating-label select:valid {
    color: #0f172a;
}

/* Placeholder option color */
.floating-label select option[value=""] {
    color: #9ca3af;
    font-style: italic;
}

/* Options – limited support */
.floating-label select option {
    font-weight: 500;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    padding: 10px;
}

/* Optional: tweak label position if select box padding differs */
.floating-label label {
    position: absolute;
    top: 12px;             /* Higher than center */
    left: 16px;
    transform: none;       /* Remove vertical centering */
    font-size: 1rem;
    color: #64748b;
    background: #ffffff;
    padding: 0 6px;
    transition: 0.2s ease-in-out;
    pointer-events: none;
}


/* Your select already has background arrow and border-radius, no change needed */


 

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #2563eb;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1e40af;
}

/* Placeholder Styles */
::placeholder {
    color: #888;
    background-color: transparent;
    opacity: 1;
    font-style: italic;
}
  
.success-message { 
    background-color: #CDFEE1 !important;  /* Light green background */
    color: #2E8B57;  /* Solid green text color */
    padding: 15px 30px;  /* More padding for a comfortable look */
    margin-bottom: 20px;
    border-radius: 12px;  /* More rounded corners for a softer feel */
    text-align: center;
    font-size: 18px;
    font-weight: 600;  /* Slightly bolder font for emphasis */
    border: 0px solid #CDFEE1;  /* Darker border for better contrast */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;  /* Space between icon and text */
    animation: fadeIn 0.5s ease-out;
}

/* You can also ensure the text color is applied to any icons inside the success message */
.success-message i {
    color: #2E8B57;  /* Solid green for the check icon */
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.required {
    color: #D32F2F;
    font-weight: bold;
}

/* Error message styling */
.error-message {
    color: #FF4D4D; /* Bright red for error */
    font-size: 14px;
    font-weight: bold;
    margin-top: 5px;
    display: block;  /* Ensures the message is shown below the input */
    visibility: visible;  /* Ensures visibility */
}

/* Input with error styling */
.floating-label input.error,
.floating-label textarea.error {
    border-color: #FF4D4D;  /* Red border for invalid fields */
    background-color: #FEE2E2;  /* Light red background for error fields */
}

