:root {
    --bg: #ffffff;
    --sidebar-bg: #090a0f;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --input-bg: #f9fafb;
    --input-border: #e5e7eb;
    --input-focus-border: #000000;
    --accent: #000000;
    --accent-hover: #1f2937;
    --success: #10b981;
    --error: #ef4444;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Manrope', sans-serif;
    background-color: black;
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 16px;
}

/* Page Layout */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(rgba(9, 10, 15, 0.4), rgba(9, 10, 15, 0.4)), url('/pics/background.jpg');
    background-size: cover;
    background-position: 0% 0%;
    background-attachment: fixed;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
}

@media (max-width: 1024px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        background-image: none;
    }
}

/* Sidebar Styling */
.sidebar-section {
    position: relative;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 80px;
    z-index: 2;
    background: rgba(9, 10, 15, 0.4);
}

@media (max-width: 1024px) {
    .sidebar-section {
        padding: 60px 40px 40px 40px;
        min-height: auto;
        background-image: linear-gradient(rgba(9, 10, 15, 0.4), rgba(9, 10, 15, 0.4)), url('/pics/background.jpg');
        background-size: cover;
        background-position: 10% center;
        background-repeat: no-repeat;
    }
}

@media (max-width: 640px) {
    .sidebar-section {
        padding: 40px 24px 20px 24px;
    }
}

/* Logo Area */
.logo-container {
    display: flex;
    align-items: flex-start;
}

.logo-image {
    max-width: 200px;
    height: auto;
    display: block;
}

/* Sidebar Content */
.sidebar-content {
    margin-top: 22vh;
    margin-bottom: 0;
    max-width: 680px;
}

@media (max-width: 1024px) {
    .sidebar-content {
        margin: 40px 0;
    }

    .sidebar-title,
    .sidebar-description {
        min-height: auto;
    }
}

.sidebar-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
}

.sidebar-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 45px;
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .sidebar-title {
        font-size: 32px;
    }
}

.sidebar-description {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #ffffff;
    margin-bottom: 32px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-link {
    font-family: 'Manrope', sans-serif;
    font-size: 19px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.sidebar-link .arrow-icon {
    width: 19px;
    height: 19px;
    stroke-width: 1.8px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.sidebar-link:hover .arrow-icon {
    transform: translate(2px, -2px);
}

.sidebar-footer {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

/* Form Section */
.form-section {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 80px;
    box-sizing: border-box;
    z-index: 2;
}

@media (max-width: 1440px) {
    .form-section {
        padding: 30px 50px;
    }
}

@media (max-width: 1200px) {
    .form-section {
        padding: 25px 30px;
    }
}

@media (max-width: 1024px) {
    .form-section {
        padding: 40px 40px;
        background: #ffffff;
    }
}

@media (max-width: 640px) {
    .form-section {
        padding: 30px 24px;
    }
}

.form-container {
    width: 100%;
    max-width: 540px;
}

.form-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-subtitle {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Forms layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

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

@media (max-width: 600px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.label span:not([data-i18n]) {
    color: var(--error);
    margin-left: 2px;
}

/* Invalid form field styling */
.form-group.invalid .label,
.form-group.invalid .label span[data-i18n] {
    color: var(--error);
}

.form-group.invalid .input,
.form-group.invalid .select,
.form-group.invalid .upload-area {
    border-color: var(--error);
}

/* Input Fields styling */
.input,
.select {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 4px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
    font-family: inherit;
}

.input:focus,
.select:focus {
    border-color: var(--input-focus-border);
    background: #ffffff;
}

.input::placeholder {
    color: #9ca3af;
}

/* Select */
.select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23111827'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
}

/* File Upload Zone */
.upload-area {
    border: 1px dashed #cccccc;
    border-radius: 4px;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #000000;
    background: #f3f3f3;
}

.upload-icon {
    width: 40px;
    height: 40px;
    background: #eeeeee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555555;
    transition: var(--transition);
}

.upload-area:hover .upload-icon {
    background: #e2e2e2;
    color: #000000;
    transform: translateY(-1px);
}

.upload-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.upload-text b {
    color: #000000;
}

.upload-subtext {
    font-size: 10px;
    color: #888888;
    line-height: 1.4;
    white-space: nowrap;
}

/* File List & Info */
.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 10px 16px;
    border-radius: 4px;
    width: 100%;
    text-align: left;
    animation: fadeIn 0.25s ease;
}

.file-info-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.file-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-remove {
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 20px;
    font-weight: 400;
    transition: var(--transition);
    padding: 0 4px;
    line-height: 1;
}

.file-remove:hover {
    color: var(--error);
}

/* Consent Checkbox */
.consent-checkbox-label {
    font-family: 'Manrope', sans-serif;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.consent-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #cccccc;
    border-radius: 2px;
    background: #ffffff;
    margin-top: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

.consent-checkbox-label input[type="checkbox"]:hover {
    border-color: #000000;
}

.consent-checkbox-label input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
}

.consent-checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    top: 1px;
    left: 5px;
    box-sizing: border-box;
}

.consent-link {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-offset: 3px;
}

/* Submit Button */
.btn-submit {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: #1f2937;
}

.btn-submit:disabled {
    background: #cccccc;
    color: #666666;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    display: none;
}

/* Error Banner */
.error-banner {
    display: flex;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    align-items: center;
    gap: 10px;
}

.error-banner svg {
    flex-shrink: 0;
}

/* Success Screen */
.success-overlay {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    animation: fadeIn 0.4s ease forwards;
}

.success-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.success-card-logo {
    margin-bottom: 35px;
}

.success-logo-img {
    max-width: 140px;
    height: auto;
    display: block;
    filter: invert(1) brightness(0);
}

.success-card-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid #111827;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #111827;
}

.success-card-icon svg {
    width: 18px;
    height: 18px;
}

.success-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.35;
    color: #111827;
    margin-bottom: 16px;
}

.success-card-text {
    font-family: 'Manrope', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 30px;
    max-width: 320px;
}

.success-card-divider {
    width: 100%;
    height: 1px;
    background-color: #eaeaea;
    margin-bottom: 30px;
}

.success-card-btn {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    text-decoration: none;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #111827;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
    box-sizing: border-box;
}

.success-card-btn:hover {
    background-color: #111827;
    color: #ffffff;
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cardScaleUp {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .success-card {
        padding: 40px 30px;
        min-height: auto;
        background: linear-gradient(180deg, rgba(9, 10, 15, 0.96) 0%, rgba(9, 10, 15, 0.9) 100%), url('/static/success_bg.png');
        background-size: cover;
        background-position: center;
    }

    .success-card-title {
        font-size: 28px;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

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

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

/* Language Toggle Button */
.lang-toggle-btn {
    border: none;
    background: transparent;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 24px;
    transition: var(--transition);
    align-self: flex-start;
    opacity: 0.75;
    padding: 0;
}

.lang-toggle-btn:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .upload-subtext {
        white-space: normal;
    }
}