:root {
    --primary-color: #FF3B30;
    --primary-hover: #E6352B;
    --text-main: #000000;
    --text-muted: #555555;
    --border-color: #C0C0C0;
    --focus-color: #000000;
    --bg-color: #FFFFFF;
    --transition-speed: 0.3s;
    --font-family: 'Inter', sans-serif;
    --heading-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
    padding: 0 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 50px;
}

.title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 36px;
    color: #000;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 15px;
}

.title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 120px;
    height: 2px;
    background: #1a1a4b;
    border-radius: 2px;
}

.subtitle {
    font-size: 15px;
    color: #000;
    font-weight: 400;
}

/* Form Styles */
.form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 12px;
    /* Super tight row gap as seen in zoom */
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 18px;
    /* Prominent label in zoom */
    font-weight: 400;
    color: #000;
    margin-bottom: 0px;
    /* Label sitting almost on the line */
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom-width: medium;
    border-bottom-style: none;
    border-bottom-color: currentcolor;
    border-bottom: 2px solid #aaa;
    padding: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.25s;
    background: transparent;
    font-family: 'Figtree', sans-serif;
    color: #000;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 25px;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #000;
    opacity: 1;
    /* Firefox fix */
    font-weight: 400;
}

/* Ensure the text is black when typing as well */
.form-group input,
.form-group select,
.form-group textarea {
    color: #000;
}

/* Focus Effects */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: #000;
    outline: none;
}

/* Custom Select Styling */
.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 0;
    bottom: 15px;
    font-size: 11px;
    color: #000;
    pointer-events: none;
}

/* Footer & Button */
.form-footer {
    display: flex;
    justify-content: center;
}

.submit-btn {
    width: 340px;
    padding: 12px 18px;
    border: none;
    border-radius: 28px;
    background-color: #ff3b30;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin: 24px auto 0;
    display: block;
    box-shadow: 0 6px 16px rgba(255, 59, 48, .25);
    transition: all 0.3s ease;
    position: relative;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 59, 48, 0.35);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .main-title {
        font-size: 32px;
    }

    .container {
        padding: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
    }
}

/* Loading State for Button */
.submit-btn.loading .btn-text {
    visibility: hidden;
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    display: block;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}