:root {
    --bg-color: #ffffff;
    --form-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #737373;
    --border-color: #e5e5e5;
    --border-focus: #111111;
    --input-bg: #ffffff;
    --danger: #000000;
    --success: #111111;
    --border-radius: 0px; /* Sharp, minimalist edges */
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fafafa; /* Very light grey to make the white form pop slightly, or just white */
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
}

/* Remove animated background elements */
.background-elements {
    display: none;
}

/* Main Form Container */
.form-container {
    background: var(--form-bg);
    border: 1px solid var(--border-color);
    padding: 4rem;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03); /* Extremely subtle shadow for depth */
}

/* Header */
.form-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-focus);
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Change SVG icon to black/gray scale */
.logo-placeholder svg path {
    fill: none !important;
    stroke: var(--text-main) !important;
}
.logo-placeholder svg path:first-child {
    fill: var(--text-main) !important;
    stroke: none !important;
}

.logo-placeholder h2 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.mobile-break {
    display: inline;
}

.form-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.form-header p {
    color: var(--text-muted);
    font-weight: 300;
}

/* Sections */
.form-section {
    margin-bottom: 4rem;
}

.form-section:last-of-type {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
}

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

/* Inputs, Selects, Textareas */
.form-group > label:not(.checkbox-label):not(.radio-label) {
    font-size: 0.75rem;
    font-weight: 600;
    color: #404040;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.35;
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    min-height: 2.2rem;
}

.form-group.full-width > label:not(.checkbox-label):not(.radio-label) {
    min-height: auto;
}

.required {
    color: #dc2626; /* Red color for required asterisks */
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--input-bg);
    border: 1px solid #d4d4d4;
    border-radius: var(--border-radius);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

select {
    width: 100%;
    padding: 0.9rem 2.8rem 0.9rem 1rem;
    background-color: var(--input-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.1rem center;
    background-size: 16px;
    border: 1px solid #d4d4d4;
    border-radius: var(--border-radius);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

select::-ms-expand {
    display: none;
}

input[type="file"] {
    padding: 0.7rem;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0;
    cursor: pointer;
    margin-right: 1rem;
    font-family: inherit;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #333333;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

input::placeholder,
textarea::placeholder {
    color: #a3a3a3;
    font-weight: 300;
}

/* Checkboxes and Radios */
.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.checkbox-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem 1.5rem;
    margin-top: 0.4rem;
}

.checkbox-group.vertical {
    flex-direction: column;
    gap: 1.2rem;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-height: auto;
    gap: 0.65rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.85rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkbox-label input[type="checkbox"],
.radio-label input[type="radio"] {
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.acceptance-section .checkbox-group.vertical {
    width: 100%;
    gap: 0.75rem;
}

.acceptance-section .checkbox-label {
    background: #fdfdfd;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.8rem;
    line-height: 1.4;
}

.acceptance-section .checkbox-label:hover {
    background: #f5f5f5;
}

.acceptance-section .checkbox-label:has(input:checked) {
    border-color: var(--text-main);
    background: #ffffff;
}

.acceptance-section .checkbox-label input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.acceptance-section .checkbox-label span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.4;
    text-transform: none;
    letter-spacing: normal;
}

/* Inline Underlined Consent Inputs */
.consent-declaration {
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: #fbfbfb;
    border: 1px solid var(--border-color);
}

.consent-declaration p {
    font-size: 0.9rem;
    line-height: 2.6;
    color: var(--text-main);
    margin-bottom: 1.25rem;
}

.consent-input,
input[type="text"].consent-input {
    display: inline-block !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1.5px solid #111111 !important;
    border-radius: 0 !important;
    padding: 0 4px 2px 4px !important;
    margin: 0 4px !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    color: var(--text-main) !important;
    box-shadow: none !important;
    vertical-align: -2px !important;
    transition: border-color 0.2s ease !important;
}

.consent-input-wide,
input[type="text"].consent-input-wide {
    width: 380px !important;
    max-width: 100% !important;
}

.consent-input-entity,
input[type="text"].consent-input-entity {
    width: 280px !important;
    max-width: 100% !important;
}

.consent-input:focus,
input[type="text"].consent-input:focus {
    outline: none !important;
    border: none !important;
    border-bottom: 2px solid #000000 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.consent-input::placeholder,
input[type="text"].consent-input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    font-size: 0.82rem !important;
}

/* Custom check/radio style override */
input[type="checkbox"], input[type="radio"] {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--text-main);
    cursor: pointer;
    margin-top: 0.15rem;
}

/* Notice Boxes */
.notice-box {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-main);
    padding: 1.5rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.notice-box h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notice-box.warning {
    border-left-color: #000000;
}

/* Legal Tabs */
.legal-section {
    border: 1px solid var(--border-color);
    padding: 0;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #f9f9f9;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    border-right: 1px solid var(--border-color);
    padding: 1.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    color: var(--text-main);
    background: #f0f0f0;
}

.tab-btn.active {
    color: var(--text-main);
    background: #ffffff;
    border-bottom: 2px solid var(--text-main);
}

.tab-content {
    position: relative;
    background: #ffffff;
}

.scrollable-content {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    padding: 2rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.scrollable-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scrollable-content h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scrollable-content h5 {
    margin: 2rem 0 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.scrollable-content p, .scrollable-content ul {
    margin-bottom: 1.2rem;
    color: #333333;
}

.scrollable-content ul {
    padding-left: 2rem;
}

.scrollable-content li {
    margin-bottom: 0.8rem;
}

/* Custom Scrollbar for scrollable content */
.scrollable-content::-webkit-scrollbar {
    width: 8px;
}
.scrollable-content::-webkit-scrollbar-track {
    background: #f9f9f9;
    border-left: 1px solid var(--border-color);
}
.scrollable-content::-webkit-scrollbar-thumb {
    background: #cccccc;
}
.scrollable-content::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

/* Language Toggle for Privacy Notice */
.lang-toggle {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.lang-btn {
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-main);
}

.lang-btn.active {
    background: var(--text-main);
    color: #ffffff;
    border-color: var(--text-main);
}

/* Submit Button */
.form-actions {
    margin-top: 4rem;
    text-align: right;
}

.btn-submit {
    background: var(--text-main);
    color: #ffffff;
    border: 1px solid var(--text-main);
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #ffffff;
    color: var(--text-main);
}

.btn-submit:active {
    background: #f0f0f0;
}


/* Responsive Breakpoints: Laptops, Tablets, and Mobile */
@media (max-width: 1024px) {
    body {
        padding: 2rem 1.5rem;
    }

    .form-container {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        background: #ffffff;
        overflow-x: hidden;
        width: 100%;
    }

    .form-container {
        padding: 1.75rem 1.25rem;
        border: none;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .form-header {
        margin-bottom: 2rem;
        padding-bottom: 1.75rem;
    }

    .form-header h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .form-header p {
        font-size: 0.88rem;
    }

    .logo-placeholder {
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .logo-placeholder img {
        height: 42px !important;
        width: auto;
    }

    .logo-placeholder h2 {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
        line-height: 1.35;
        text-align: left;
    }

    .mobile-break {
        display: block;
    }

    .form-section {
        margin-bottom: 2.75rem;
    }

    .form-section h3 {
        font-size: 1.05rem;
        margin-bottom: 1.25rem;
        letter-spacing: 0.5px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
    }

    .checkbox-grid-3 {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .checkbox-label, .radio-label {
        white-space: normal !important;
        word-break: normal;
        line-height: 1.4;
    }

    .form-group > label {
        min-height: auto;
        font-size: 0.8rem;
    }

    .notice-box {
        padding: 1.15rem 1rem;
        font-size: 0.85rem;
        margin-top: 1.25rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.82rem;
    }

    .scrollable-content {
        padding: 1.25rem 1rem;
        font-size: 0.88rem;
        max-height: 320px;
    }

    .scrollable-content ul {
        padding-left: 1.25rem;
    }

    .consent-declaration {
        padding: 1.25rem 1rem;
        margin-bottom: 1.5rem;
    }

    .consent-declaration p {
        line-height: 1.85;
        font-size: 0.85rem;
    }

    .consent-input,
    input[type="text"].consent-input,
    .consent-input-wide,
    input[type="text"].consent-input-wide,
    .consent-input-entity,
    input[type="text"].consent-input-entity {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
        margin: 0.4rem 0 0.8rem 0 !important;
        box-sizing: border-box !important;
    }

    input[type="file"] {
        padding: 0.5rem;
        font-size: 0.8rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    input[type="file"]::-webkit-file-upload-button {
        padding: 0.45rem 0.85rem;
        margin-right: 0.5rem;
        font-size: 0.72rem;
        letter-spacing: 0.5px;
    }

    .acceptance-section .checkbox-label {
        padding: 0.75rem 0.95rem;
        font-size: 0.78rem;
    }

    .acceptance-section .checkbox-label span {
        font-size: 0.78rem;
    }

    .form-actions {
        margin-top: 2.25rem;
        text-align: stretch;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem;
        font-size: 0.92rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.25rem 0.85rem;
    }

    .logo-placeholder {
        gap: 0.5rem;
    }

    .logo-placeholder img {
        height: 36px !important;
    }

    .logo-placeholder h2 {
        font-size: 0.82rem;
        letter-spacing: 0.3px;
        line-height: 1.3;
        text-align: left;
    }

    .form-header h1 {
        font-size: 1.3rem;
    }

    .form-section h3 {
        font-size: 0.98rem;
    }

    .consent-declaration {
        padding: 1rem 0.75rem;
    }

    .notice-box {
        padding: 1rem 0.75rem;
    }
}
