/* =============================================
   DROHNE112 FORM – PREMIUM DESIGN SYSTEM
   ============================================= */

:root {
    /* Brand Colors */
    --gold: #FBC02D;
    --gold-light: #FFE082;
    --gold-dark: #F9A825;
    --red: #E63946;
    --red-dark: #C0313D;

    /* Neutrals */
    --bg-primary: #F0EDE8;
    --bg-secondary: #E8E4DD;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A2E;
    --text-secondary: #4A4A5A;
    --text-muted: #8A8A9A;
    --border: #D5D0C8;
    --border-focus: #FBC02D;

    /* Status */
    --success: #10B981;
    --success-bg: #ECFDF5;
    --error: #EF4444;
    --error-bg: #FEF2F2;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-gold: 0 4px 20px rgba(251, 192, 45, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   RESET & BASE
   ============================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* =============================================
   TOP BAR
   ============================================= */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 192, 45, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(251, 192, 45, 1);
    padding: 0 40px;
    transition: padding var(--transition-normal);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    width: 40px;
    height: 40px;
}

.logo-icon img {
    height: 44px;
    width: auto;
    display: block;
    transition: height var(--transition-normal);
}

.logo-icon circle {
    stroke: var(--red);
}

.logo-icon text {
    fill: white;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--gold);
}

.logo-dot {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 16px;
}

.regenerate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(26, 26, 46, 0.95);
    color: rgba(251, 192, 45, 1);
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.3px;
}

.regenerate-btn:hover {
    transform: translateY(-0.1px);
    box-shadow: 0 6px 28px rgba(228, 10, 10, 0.35);
    background: rgba(228, 10, 10, 0.35);
}

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

.regenerate-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.6s ease;
}

.regenerate-btn:hover .regenerate-icon {
    transform: rotate(180deg);
}

/* =============================================
   HERO SECTION
   ============================================= */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
    padding: 80px 24px 60px;
    overflow: hidden;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(251, 192, 45, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(230, 57, 70, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-conic-gradient(rgba(255, 255, 255, 0.01) 0deg 10deg,
            transparent 10deg 20deg);
    animation: heroRotate 120s linear infinite;
}

@keyframes heroRotate {
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(251, 192, 45, 0.15);
    border: 1px solid rgba(251, 192, 45, 0.3);
    border-radius: 50px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-logo-item svg {
    width: 44px;
    height: 44px;
}

.hero-logo-item circle {
    stroke: var(--red);
}

.hero-logo-item text {
    fill: white;
}

.hero-logo-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    letter-spacing: 0.5px;
}

.hero-logo-text strong {
    font-weight: 800;
    color: var(--gold);
}

.hero-logo-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-logo-text-alt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero-logo-text-alt small {
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 11px;
}

/* =============================================
   FORM SECTION
   ============================================= */

.form-section {
    padding: 48px 24px 80px;
    max-width: 780px;
    margin: 0 auto;
}

.form-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red), var(--gold));
}

/* =============================================
   PROGRESS BAR & STEPS
   ============================================= */

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    width: 20%;
    transition: width var(--transition-slow);
}

.step-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
}

.step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    cursor: default;
    flex-shrink: 0;
}

.step-dot span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.step-dot.active {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(251, 192, 45, 0.2);
}

.step-dot.active span {
    color: var(--text-primary);
}

.step-dot.completed {
    background: var(--success);
    border-color: var(--success);
}

.step-dot.completed span {
    color: white;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    max-width: 80px;
    transition: background var(--transition-normal);
}

.step-line.active {
    background: var(--gold);
}

/* =============================================
   FORM STEPS
   ============================================= */

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

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

.step-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.step-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-weight: 400;
}

/* =============================================
   FORM FIELDS
   ============================================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

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

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

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.required {
    color: var(--red);
    font-size: 14px;
}

.optional-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--transition-normal);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    background: white;
    box-shadow: 0 0 0 4px rgba(251, 192, 45, 0.12);
}

input.error,
select.error {
    border-color: var(--error);
    background: var(--error-bg);
}

.field-error {
    font-size: 12px;
    color: var(--error);
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.field-error.visible {
    display: block;
}

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

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

.custom-select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform var(--transition-normal);
}

.custom-select-wrapper select:focus+.select-arrow {
    color: var(--gold);
    transform: translateY(-50%) rotate(180deg);
}

/* =============================================
   CHOICE CARDS (Ja/Nein)
   ============================================= */

.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.choice-card {
    padding: 36px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 192, 45, 0.05), rgba(251, 192, 45, 0.02));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.choice-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.choice-card:hover::before {
    opacity: 1;
}

.choice-card.selected {
    border-color: var(--gold);
    background: rgba(251, 192, 45, 0.06);
    box-shadow: 0 0 0 4px rgba(251, 192, 45, 0.15);
}

.choice-card.selected::before {
    opacity: 1;
}

.choice-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    color: var(--text-muted);
    transition: color var(--transition-normal);
}

.choice-card:hover .choice-icon,
.choice-card.selected .choice-icon {
    color: var(--gold);
}

.choice-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.choice-card p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* =============================================
   CHECKBOX GRID (Multi-select)
   ============================================= */

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.checkbox-card {
    cursor: pointer;
    display: block;
}

.checkbox-card input[type="checkbox"] {
    display: none;
}

.checkbox-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-primary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.checkbox-card-inner small {
    color: var(--text-muted);
    font-size: 12px;
}

.checkbox-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    background: white;
}

.checkbox-indicator svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-normal);
    color: white;
}

.checkbox-card:hover .checkbox-card-inner {
    border-color: var(--gold);
    background: rgba(251, 192, 45, 0.04);
}

.checkbox-card input:checked+.checkbox-card-inner {
    border-color: var(--gold);
    background: rgba(251, 192, 45, 0.06);
}

.checkbox-card input:checked+.checkbox-card-inner .checkbox-indicator {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-card input:checked+.checkbox-card-inner .checkbox-indicator svg {
    opacity: 1;
    transform: scale(1);
}

/* Notes Group */
.notes-group {
    margin-bottom: 32px;
}

/* =============================================
   BUTTONS
   ============================================= */

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    letter-spacing: 0.3px;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--text-primary);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(251, 192, 45, 0.35);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text-primary);
}

.btn-submit {
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}

.btn-submit:hover {
    box-shadow: 0 6px 28px rgba(16, 185, 129, 0.35);
}

/* =============================================
   SUCCESS STATE
   ============================================= */

.success-container {
    text-align: center;
    padding: 40px 0;
}

.success-icon-wrap {
    margin-bottom: 28px;
}

.success-icon {
    width: 80px;
    height: 80px;
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.success-check {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.6s ease 0.3s forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.success-message {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.success-details {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.success-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.success-detail-item svg {
    width: 18px;
    height: 18px;
    color: var(--gold);
}

/* =============================================
   PRIVACY NOTICE
   ============================================= */

.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.privacy-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted);
}

.privacy-notice p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.privacy-notice a {
    color: var(--gold-dark);
    text-decoration: underline;
    font-weight: 500;
}

.privacy-notice a:hover {
    color: var(--gold);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 400;
}

/* =============================================
   LOADING OVERLAY
   ============================================= */

.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 0.8s linear infinite;
}

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

.loading-spinner p {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* =============================================
   RESPONSIVE & MEDIA QUERIES
   ============================================= */

/* Screen widths under 1100px - Fixes spacing and prevents edge-touching */
@media (max-width: 1100px) {
    .top-bar {
        padding: 0 24px;
    }

    .top-bar-inner {
        height: 72px;
    }

    .logo-icon img {
        height: 40px;
    }

    .regenerate-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* Screen widths under 768px (Tablets) */
@media (max-width: 768px) {
    .top-bar {
        padding: 0 16px;
    }

    .top-bar-inner {
        height: 64px;
    }

    .logo-icon img {
        height: 34px;
    }
}

/* Screen widths under 640px (Small mobiles/tablets) */
@media (max-width: 640px) {
    .form-container {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

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

    .choice-cards {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 60px 20px 40px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-logos {
        flex-direction: column;
        gap: 16px;
    }

    .hero-logo-divider {
        width: 40px;
        height: 1px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-indicators {
        gap: 0;
    }

    .step-dot {
        width: 30px;
        height: 30px;
    }

    .step-dot span {
        font-size: 11px;
    }

    .step-line {
        max-width: 40px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .success-details {
        flex-direction: column;
        align-items: center;
    }

    .top-bar-inner {
        height: 58px;
    }

    .logo-icon img {
        height: 32px;
    }

    .regenerate-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* Screen widths under 480px (Narrow mobile screens) */
@media (max-width: 480px) {
    .top-bar {
        padding: 0 12px;
    }

    .top-bar-inner {
        height: 56px;
    }

    .logo-icon img {
        height: 28px;
    }

    .regenerate-btn {
        padding: 8px;
        width: 36px;
        height: 36px;
        min-width: 36px;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .regenerate-btn .btn-text {
        display: none;
    }

    .regenerate-icon {
        margin: 0;
    }
}

/* Screen widths under 400px (Extra small mobiles) */
@media (max-width: 400px) {
    .form-container {
        padding: 20px 16px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 14px;
    }
}