/* Root Variables - matching the Tailwind theme */
:root {
    --color-background: rgb(252, 252, 251);
    --color-foreground: rgb(41, 42, 43);
    --color-brand: #FEDD0A;
    --color-brand-foreground: rgb(41, 42, 43);
    --color-card: rgb(255, 255, 255);
    --color-border: rgb(181, 182, 182);
    --color-muted: rgb(244, 245, 247);
    --color-muted-foreground: rgb(116, 125, 136);
    --color-accent: rgb(244, 245, 247);
    --radius: 0.875rem;
    --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, sans-serif;
    --font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

body {
    background-color: var(--color-background) !important;
    color: var(--color-foreground) !important;
    font-family: var(--font-sans) !important;
}

/* Container - narrower width */
.container {
    max-width: 800px !important;
}

/* Header */
.header-brand {
    width: 100%;
    background-color: var(--color-brand);
}

.header-brand .container {
    max-width: 900px !important;
}

.logo {
    height: 5rem;
    width: auto;
}

.logo-link {
    transition: transform 0.2s;
}

.logo-link:hover {
    transform: scale(1.02);
}

a {
    font-weight: 500;
    color: var(--color-foreground);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 640px) {
    .logo {

    }
}

/* Intro Section */
.intro-section {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .intro-section {
        padding-top: 4rem;
    }
}

.intro-label {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-muted-foreground);
    margin-bottom: 0.75rem;
}

.intro-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-foreground);
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .intro-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .intro-title {
        font-size: 3.75rem;
    }
}

.brand-accent {
    height: 0.375rem;
    width: 6rem;
    border-radius: 9999px;
    background-color: var(--color-brand);
    margin-top: 0.5rem;
}

.intro-content {
    margin-top: 2rem;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(41, 42, 43, 0.85);
}

@media (min-width: 640px) {
    .intro-content {
        font-size: 1.125rem;
    }
}

.intro-content p {
    margin-bottom: 1.25rem;
}

.intro-greeting {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-foreground);
}

@media (min-width: 640px) {
    .intro-greeting {
        font-size: 1.5rem;
    }
}

/* Form Section */
.form-section {
    margin-top: 1.5rem;
    padding-bottom: 5rem;
    scroll-margin-top: 6rem;
}

.form-card {
    border-radius: calc(var(--radius) + 12px);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    padding: 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
    .form-card {
        padding: 2.5rem;
    }
}

.form-section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-foreground);
}

@media (min-width: 640px) {
    .form-section-title {
        font-size: 1.475rem;
    }
}

.form-section-subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
}

/* Form Controls - only styling, no layout */
.form-label {
    font-weight: 500;
    color: var(--color-foreground);
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border-color: var(--color-border);
    font-size: 0.875rem;
    background-color: var(--color-card);
    color: var(--color-foreground);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-brand);
    box-shadow: 0 0 0 0.2rem rgba(254, 221, 10, 0.25);
}

.form-control[type="file"]::file-selector-button {
    margin-right: 0.75rem;
    border-radius: calc(var(--radius) - 2px);
    border: 0;
    background-color: var(--color-brand);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-brand-foreground);
    cursor: pointer;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: rgba(254, 221, 10, 0.9);
}

/* Info Box */
.info-box {
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--color-border);
    background-color: rgba(252, 252, 251, 0.6);
    padding: 1.25rem;
}

.info-box-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-foreground);
    margin-bottom: 0.25rem;
}

.info-box-subtitle {
    font-size: 0.875rem;
    color: var(--color-muted-foreground);
    margin-bottom: 0;
}

/* Checkbox Cards */
.checkbox-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%;
    margin-bottom: 0;
}

.checkbox-card:hover {
    background-color: var(--color-accent);
}

.checkbox-card input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    cursor: pointer;
    accent-color: var(--color-brand);
}

.checkbox-card:has(input:checked) {
    border-color: var(--color-brand);
    background-color: rgba(254, 221, 10, 0.15);
}

.checkbox-card-text {
    font-weight: 500;
    color: var(--color-foreground);
    margin: 0;
}

/* Consent Checkboxes */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: calc(var(--radius) + 4px);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    width: 100%;
    margin-bottom: 0;
}

.consent-checkbox:hover {
    background-color: var(--color-accent);
}

.consent-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    margin-bottom: 0;
    cursor: pointer;
    accent-color: var(--color-brand);
}

.consent-checkbox:has(input:checked) {
    border-color: var(--color-brand);
    background-color: rgba(254, 221, 10, 0.1);
}

.consent-checkbox-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-foreground);
    margin: 0;
}

/* Privacy Notice */
.privacy-notice {
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--color-border);
    background-color: rgba(244, 245, 247, 0.4);
    padding: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.75;
    color: var(--color-muted-foreground);
}

.privacy-notice p {
    margin-bottom: 0.75rem;
}

.privacy-notice p:last-child {
    margin-bottom: 0;
}

.privacy-notice a {
    font-weight: 500;
    color: var(--color-foreground);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-notice a:hover {
    color: var(--color-brand-foreground);
}

/* Buttons */
.btn-brand {
    background-color: var(--color-brand);
    color: var(--color-brand-foreground);
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: rgba(254, 221, 10, 0.9);
    color: var(--color-brand-foreground);
}

.btn-outline-secondary,
.btn-outline-danger {
    border-radius: var(--radius);
}

/* Social Media Rows */
.social-media-row {
    position: relative;
}

.remove-social {
    width: 100%;
}

/* Success Section */
.success-section {
    margin-top: 2rem;
    padding-bottom: 5rem;
    scroll-margin-top: 6rem;
}

.success-card {
    border-radius: calc(var(--radius) + 12px);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.25);
    animation: fadeInZoom 0.5s ease-out;
}

@media (min-width: 640px) {
    .success-card {
        padding: 3.5rem;
    }
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: var(--color-brand);
    color: var(--color-brand-foreground);
    margin: 0 auto;
}

.success-title {
    font-family: var(--font-display);
    margin-top: 1.5rem;
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-foreground);
}

@media (min-width: 640px) {
    .success-title {
        font-size: 2.25rem;
    }
}

.success-text {
    margin: 0.75rem auto 0;
    max-width: 28rem;
    font-size: 1rem;
    color: var(--color-muted-foreground);
}

/* Validation Styles */
.is-invalid {
    border-color: #dc3545 !important;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.invalid-feedback {
    display: block !important;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
    border-color: #dc3545;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.was-validated .form-control:valid:not([type="file"]),
.was-validated .form-select:valid {
    border-color: #28a745;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.is-valid {
    border-color: #28a745 !important;
    background-image: none !important;
    padding-right: 0.75rem !important;
}

.is-valid:focus {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Terms Collapse Styles */
.terms-collapse-content {
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--color-border);
    background-color: var(--color-card);
    padding: 1.25rem;
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.15);
}

.terms-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-muted-foreground);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.terms-close-btn:hover {
    color: var(--color-foreground);
    transform: scale(1.1);
}

.terms-close-btn:active {
    transform: scale(0.95);
}

.terms-scroll {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

.terms-scroll::-webkit-scrollbar {
    width: 8px;
}

.terms-scroll::-webkit-scrollbar-track {
    background: var(--color-muted);
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.terms-scroll::-webkit-scrollbar-thumb:hover {
    background: #999;
}

@media (min-width: 768px) {
    .terms-scroll {
        max-height: 500px;
    }
}
