/* Define theme variables to match original site */
:root {
    --text-color: #222;
    --heading-text-color: #061844;
    --blue: #036ef0;
    --white: white;
    --grey: #f7f7f7;
    --green: #015f27;
    --light-blue: #e0eeff4d;
    --lightgrey: #5c5c5c;
    --lightgreen: #00ac45;
    --yellow: #f4c048;
    --darkblue: #143f8f;
}

/* Apply font settings to the entire app */
html, body {
    font-family: 'Plus Jakarta Sans', 'Poppins', 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

/* Override MudBlazor default fonts */
.mud-typography {
    font-family: 'Plus Jakarta Sans', 'Poppins', 'Roboto', sans-serif !important;
}

.mud-button-root {
    font-family: 'Plus Jakarta Sans', 'Poppins', 'Roboto', sans-serif !important;
    font-weight: 600 !important;
}

.mud-input {
    font-family: 'Plus Jakarta Sans', 'Poppins', 'Roboto', sans-serif !important;
}

/* Typography classes to match the original site */
.heading-style-h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-size-medium {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Custom form styling to match original */
.form-tab-active {
    color: var(--blue) !important;
    border-bottom: 2px solid var(--blue) !important;
    font-weight: 700;
}

/* Focus state matching original site */
*:focus-visible {
    outline: 0.125rem solid #4d65ff;
    outline-offset: 0.125rem;
}

/* Custom card styling for form */
.form-card {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Custom form tab styling */
.mud-tabs-toolbar {
    background-color: transparent;
}

.mud-tab {
    background-color: var(--grey);
    color: var(--lightgrey);
    text-align: center;
    border: 1px solid rgba(92, 92, 92, 0.35);
    border-radius: 6px;
    padding: 20px 40px;
    font-size: 1rem;
    font-weight: 700;
    margin-right: 10px;
}

.mud-tab.mud-tab-active {
    background-color: var(--light-blue);
    color: var(--blue);
}

/* Custom file upload styling */
.file-upload-container {
    border: 2px dashed #e0e0e0;
    border-radius: 4px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.file-upload-container:hover {
    border-color: var(--darkblue);
    background-color: rgba(19, 63, 143, 0.05);
}

/* Footer styling */
.footer-container {
    background-color: #f9f9f9;
    padding: 3rem 0;
}

/* Ensure proper spacing in form sections */
.form-section {
    margin-bottom: 2rem;
}

/* Custom dropdown styling */
.mud-select {
    width: 100%;
}

/* Company logo size adjustment */
.company-logo {
    width: 120px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .heading-style-h1 {
        font-size: 1.75rem;
    }

    .mud-tabs-toolbar {
        flex-direction: column;
    }
}

/* Mobile responsiveness */
.mud-tabs-responsive .mud-tabs-toolbar {
    flex-wrap: wrap;
}

.mud-tabs-responsive .mud-tab {
    flex: 1 0 auto;
    min-width: 150px;
    max-width: 100%;
    margin-bottom: 8px;
}

/* Adjust padding on mobile */
@media (max-width: 600px) {
    .form_input.mud-input-control .mud-input.mud-input-outlined {
        padding: .75rem 1rem;
    }

    .apply_button.mud-button-filled {
        padding: 0.75rem 1.5rem;
    }
}

/* Mobile tabs styling */
.mobile-tabs-container {
    width: 100%;
}

.mobile-tabs-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.mobile-tab-connector {
    height: 2px;
    background-color: var(--grey);
    flex-grow: 1;
    margin: 0 4px;
}

.mobile-tab-active {
    background-color: var(--light-blue) !important;
    color: var(--blue) !important;
    transform: scale(1.2);
    transition: all 0.2s ease;
}

.mobile-tabs-content {
    min-height: 400px;
}