:root {

    --brand-primary: #199fb1;

    --brand-light: #f0fbfc;

    --text-main: #1f2937;

    --text-muted: #6b7280;

    --bg-body: #ffffff;

    --card-border: #f3f4f6;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --brand-gradient: linear-gradient(135deg, #199fb1 0%, #0d5c75 100%);


}



body {

    font-family: 'Inter', system-ui, -apple-system, sans-serif;

    background-color: #f8fafc;

    color: var(--text-main);

    overflow-x: hidden;

}

/* Hero Section */

.hero-section {

    background: var(--brand-gradient);

    padding: 120px 0 60px;

    text-align: center;

    color: white;

    clip-path: ellipse(150% 100% at 50% 0%);

}


.header-container {

    display: flex;
    align-items: center;
    justify-content: space-between;

}


.cta-btn {

    background: var(--brand-primary);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s;

}


/* Form Section */

#contact-form-section {
    /* padding: 80px 0; */
    margin-top: -50px;
    background: #f8fafc;
    /* min-height: calc(100vh - 80px); */
    display: flex;
    align-items: center;
}



/* Form Card Container */
.form-card {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: grid;
    grid-template-columns: 380px 1fr;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
}



.back-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}



.back-link:hover {
    opacity: 0.8;
    color: #ffffff;
}



/* Sidebar Branding Section */
.form-sidebar {
    background: var(--brand-primary);
    color: white;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}



.form-sidebar::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}



.sidebar-footer {
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 0.05em;
}



/* Main Form Area */
.form-body {
    padding: 4.5rem 4rem;
    background: #ffffff;
    position: relative;
}



.form-header h2 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}



/* Custom Input & General Styling */
.form-group-custom {
    position: relative;
    margin-bottom: 2.5rem;
}



.form-control-custom {
    width: 100%;
    border: none;
    border-bottom: 2px solid #f1f5f9;
    padding: 10px 5px 6px 0px;
    font-size: 1rem;
    background: transparent;
    outline: none;
    transition: border-color 0.3s;
    color: #363636;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    border-radius: 0;
}



.form-control-custom:focus {
    border-color: var(--brand-primary);
}



/* Specifically style placeholder color on custom controls */
.form-control-custom::placeholder {
    color: #cbd5e1;
    font-size: 1rem;
}



/* Premium Custom Dropdown Element (To style options beautifully) */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-trigger {
    width: 100%;
    border-bottom: 2px solid #f1f5f9;
    padding: 10px 5px 6px 0px;
    font-size: 1rem;
    color: #cbd5e1; /* Gray placeholder state */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s;
    user-select: none;
}

.custom-dropdown-trigger.selected-active {
    color: #363636; /* Active text color when option is chosen */
}

.custom-dropdown-trigger:hover {
    border-color: #cbd5e1;
}

.custom-dropdown.open .custom-dropdown-trigger {
    border-color: var(--brand-primary);
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #94a3b8;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.custom-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px;
    list-style: none;
    display: none;
    z-index: 100;
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.custom-dropdown-menu li {
    padding: 10px 16px;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.custom-dropdown-menu li:hover {
    background-color: var(--brand-light);
    color: var(--brand-primary);
}

.custom-dropdown-menu li.selected {
    background-color: var(--brand-primary);
    color: #ffffff;
    font-weight: 600;
}

/* Tick icon for selected option */
.custom-dropdown-menu li.selected::after {
    content: "\F26E"; /* Bootstrap check icon */
    font-family: "bootstrap-icons";
    font-size: 0.95rem;
}



/* Custom Label Styling */
.label-custom {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-primary);
}



/* Submit Button */
.submit-btn-large {
    width: 100%;
    background: var(--brand-primary);
    color: white;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    margin-top: 1rem;
}

.submit-btn-large:hover {
    background: var(--primaryColor);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(25, 159, 177, 0.2);
}

.submit-btn-large:disabled {
    background: gray;
}
.submit-btn-large:disabled:hover {
    background: gray;
    transform: none;
    box-shadow: none;
    cursor: default;
}



/* Custom Validation Visual States */
.form-control-custom.is-invalid {
    border-color: #dc3545 !important;
}

.form-control-custom.is-valid {
    border-color: var(--brand-primary) !important;
}

.custom-dropdown.is-invalid .custom-dropdown-trigger {
    border-color: #dc3545 !important;
}

.custom-dropdown.is-valid .custom-dropdown-trigger {
    border-color: var(--brand-primary) !important;
}



.invalid-feedback {
    font-size: 0.78rem;
    color: #dc3545;
    margin-top: 0.35rem;
    font-weight: 500;
    display: none; /* Controlled dynamically by validation script */
}

.form-group-custom .invalid-feedback.show-error {
    display: block;
}



/* Message Success Container styling */
#success-state {
    display: none;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

#msg-alert
{
    display: none;
}



/* Responsive styling adjustments */
@media (max-width: 991px) {
    .form-card {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }
    .form-sidebar {
        padding: 3rem 2.5rem;
    }
    .form-sidebar::after {
        display: none;
    }
    .form-body {
        padding: 3rem 2.5rem;
    }
}



@media (max-width: 768px) {
    #contact-form-section {
        padding: 40px 0;
    }
}