/* =========================================================
   PV Österreich – Modern Professional Form
   ========================================================= */

/* ---------- CSS Custom Properties ---------- */
:root {
    --pv-primary:       #0066CC;
    --pv-primary-dark:  #004C99;
    --pv-primary-light: #3385D6;
    --pv-secondary:     #00A896;
    --pv-accent:        #FF6B35;
    
    --pv-text:          #1F2937;
    --pv-text-light:    #6B7280;
    --pv-text-muted:    #9CA3AF;
    
    --pv-border:        #E5E7EB;
    --pv-border-light:  #F3F4F6;
    --pv-bg:            #F9FAFB;
    --pv-bg-alt:        #FFFFFF;
    
    --pv-success:       #10B981;
    --pv-error:         #EF4444;
    
    --shadow-sm:        0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md:        0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg:        0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl:        0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm:        6px;
    --radius-md:        8px;
    --radius-lg:        12px;
    --radius-xl:        16px;
    
    --transition:       all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ---------------------------------------------------------
   NAVBAR
   --------------------------------------------------------- */
.navbar {
    background: var(--pv-bg-alt);
    border-bottom: 1px solid var(--pv-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.navbar-logo img {
    height: 52px;
    width: auto;
}

.navbar-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.navbar-link {
    color: var(--pv-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pv-primary), var(--pv-secondary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.navbar-link:hover {
    color: var(--pv-primary);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar-link-small {
    color: var(--pv-text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    letter-spacing: -0.01em;
}

.navbar-link-small:hover {
    color: var(--pv-primary);
}

.navbar-cta {
    background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-light) 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}

.navbar-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.navbar-cta:active {
    transform: translateY(0);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--pv-text);
    padding: 8px;
}

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #0066CC 0%, #004C99 50%, #00A896 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,168,150,0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 96px 24px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-content .highlight {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.05) 100%);
    padding: 0 8px;
    border-radius: 4px;
}

.hero-content p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 400;
}

/* ---------------------------------------------------------
   MAIN / FORM
   --------------------------------------------------------- */
.main-content {
    flex: 1;
    background: var(--pv-bg);
    padding: 64px 0 80px;
}

.form-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--pv-text);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 15px;
    color: var(--pv-text-light);
}

.required-asterisk {
    color: var(--pv-error);
    font-weight: 600;
}

.modern-form {
    background: var(--pv-bg-alt);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--pv-border-light);
}

.form-footer {
    padding: 40px 48px 48px;
    background: linear-gradient(to bottom, transparent 0%, var(--pv-bg) 100%);
    border-top: 1px solid var(--pv-border-light);
}

.form-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--pv-text-light);
}

.form-footer-note svg {
    color: var(--pv-success);
    flex-shrink: 0;
}

fieldset.form-section {
    border: 0;
    margin: 0;
    padding: 48px 48px 40px;
    border-bottom: 1px solid var(--pv-border);
    position: relative;
}

fieldset.form-section:first-of-type {
    padding-top: 48px;
}

fieldset.form-section:last-of-type { 
    border-bottom: none; 
}

legend.section-title {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
    width: 100%;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #E8F4FD 0%, #E0F2F1 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid rgba(0, 102, 204, 0.12);
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
    margin-top: 2px;
}

.section-icon svg {
    color: var(--pv-primary);
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

legend.section-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--pv-text);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.section-subtitle {
    font-size: 14px;
    color: var(--pv-text-light);
    font-weight: 400;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group { 
    margin-bottom: 28px; 
    position: relative; 
}
.form-row .form-group { 
    margin-bottom: 0; 
}

label {
    display: block;
    margin-bottom: 9px;
    font-weight: 500;
    font-size: 14px;
    color: var(--pv-text);
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.required {
    color: var(--pv-error);
    font-weight: 600;
    margin-left: 2px;
}

.input-wrapper {
    position: relative;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--pv-border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: var(--pv-bg-alt);
    transition: var(--transition);
    color: var(--pv-text);
    font-weight: 400;
}

input:hover {
    border-color: var(--pv-text-muted);
}

input:focus {
    border-color: var(--pv-primary);
    outline: none;
    background: var(--pv-bg-alt);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
}

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

input:valid:not(:placeholder-shown) {
    border-color: var(--pv-success);
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--pv-text-light);
    line-height: 1.4;
}

.phone-input-wrapper {
    position: relative;
}

.phone-input {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--pv-border);
    border-radius: var(--radius-md);
    background: var(--pv-bg-alt);
    transition: var(--transition);
    overflow: hidden;
}

.phone-input:hover {
    border-color: var(--pv-text-muted);
}

.phone-input:focus-within {
    border-color: var(--pv-primary);
    background: var(--pv-bg-alt);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.08);
}

.phone-prefix {
    background: var(--pv-bg);
    padding: 13px 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--pv-text);
    border-right: 1.5px solid var(--pv-border);
    user-select: none;
}

.phone-input input {
    flex: 1;
    border: none;
    padding: 13px 15px;
    background: transparent;
}

.phone-input input:focus { 
    box-shadow: none;
    outline: none;
    border: none;
}

.phone-input input:valid {
    border-color: transparent;
}

.suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; 
    right: 0;
    display: none;
    background: var(--pv-bg-alt);
    border: 1px solid var(--pv-border);
    border-radius: var(--radius-md);
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
}
.suggestions.active { 
    display: block; 
    animation: slideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--pv-border-light);
    font-size: 14px;
    transition: var(--transition);
    color: var(--pv-text);
}
.suggestion-item:last-child { 
    border-bottom: none; 
}
.suggestion-item:hover {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.04) 0%, rgba(0, 168, 150, 0.04) 100%);
    padding-left: 20px;
    color: var(--pv-primary);
}

.iban-wrapper {
    position: relative;
}

.validation-status {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    display: flex; 
    align-items: center; 
    gap: 6px;
    letter-spacing: -0.01em;
    pointer-events: none;
}

.validation-status.valid   { 
    color: var(--pv-success); 
}

.validation-status.invalid { 
    color: var(--pv-error); 
}

.iban-wrapper input:focus ~ .validation-status,
.iban-wrapper input:not(:placeholder-shown) ~ .validation-status {
    display: flex;
}

.submit-btn {
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-light) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px; 
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-family: 'Inter', sans-serif;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 102, 204, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    background: var(--pv-text-muted); 
    cursor: not-allowed; 
    transform: none;
    opacity: 0.6;
    box-shadow: none;
}

.footer { 
    background: linear-gradient(135deg, #1F2937 0%, #111827 100%); 
    color: #fff; 
    margin-top: auto; 
}

.footer-top { 
    border-bottom: 1px solid rgba(255,255,255,.08); 
}

.footer-container {
    max-width: 1280px; 
    margin: 0 auto; 
    padding: 64px 24px;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 48px;
}
.footer-col h3 {
    font-size: 14px; 
    font-weight: 600; 
    margin-bottom: 20px;
    text-transform: uppercase; 
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.9);
}
.footer-col a {
    display: block; 
    margin-bottom: 12px; 
    font-size: 14px;
    color: rgba(255,255,255,.65); 
    text-decoration: none; 
    transition: var(--transition);
}
.footer-col a:hover { 
    color: var(--pv-primary-light); 
    padding-left: 4px; 
}

.social-icons { 
    display: flex; 
    gap: 12px; 
}
.social-icons a {
    width: 40px; 
    height: 40px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    background: rgba(255,255,255,.08); 
    border-radius: var(--radius-md); 
    transition: var(--transition);
}
.social-icons a:hover { 
    background: var(--pv-primary); 
    transform: translateY(-2px); 
}

.footer-bottom { 
    padding: 32px 0; 
}
.footer-bottom .footer-container {
    padding: 0 24px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 32px;
}
.footer-links { 
    display: flex; 
    gap: 24px; 
    flex-wrap: wrap; 
    align-items: center; 
    font-size: 13px; 
}
.footer-links a { 
    color: rgba(255,255,255,0.7); 
    text-decoration: none; 
    transition: var(--transition); 
}
.footer-links a:hover { 
    color: var(--pv-primary-light); 
}
.footer-links span { 
    color: rgba(255,255,255,.45); 
}

.modal {
    position: fixed; 
    inset: 0;
    display: none; 
    align-items: center; 
    justify-content: center;
    background: rgba(0,0,0,.5); 
    backdrop-filter: blur(8px);
    z-index: 2000;
}
.modal.active { 
    display: flex; 
}

.modal-content {
    background: var(--pv-bg-alt); 
    border-radius: var(--radius-xl);
    width: 90%; 
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 40px;
    animation: modalSlide .3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--pv-border-light);
}

@keyframes modalSlide {
    from { 
        transform: translateY(-20px) scale(.96); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1; 
    }
}

.modal-header h3 {
    font-size: 24px; 
    font-weight: 600; 
    color: var(--pv-text); 
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.modal-body {
    margin-bottom: 28px; 
    font-size: 15px; 
    line-height: 1.6; 
    color: var(--pv-text-light);
}
.modal-btn {
    width: 100%; 
    padding: 14px;
    background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-light) 100%);
    color: #fff; 
    border: none; 
    border-radius: var(--radius-md);
    font-size: 15px; 
    font-weight: 600; 
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.01em;
}
.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.modal-btn:active {
    transform: translateY(0);
}
.modal-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
}

/* ---------------------------------------------------------
   Responsive Breakpoints
   --------------------------------------------------------- */
@media (max-width: 1024px) {
    .navbar-menu { display: none; }
    .mobile-menu-toggle { display: block; }

    .hero-content h1 { font-size: 44px; }
    .hero-content p  { font-size: 18px; }
}

@media (max-width: 768px) {
    .navbar-container { padding: 0 20px; height: 72px; }
    .navbar-logo img  { height: 40px; }
    .navbar-actions   { gap: 12px; }
    .navbar-link-small,
    .navbar-cta       { display: none; }
    .mobile-menu-toggle { display: block; }

    .hero-container   { padding: 72px 20px; }
    .hero-content h1  { font-size: 36px; }
    .hero-content p   { font-size: 17px; }

    .main-content     { padding: 48px 0; }
    .form-container   { padding: 0 20px; }
    
    .form-header { margin-bottom: 32px; }
    .form-header h2 { font-size: 28px; }
    
    fieldset.form-section { padding: 36px 24px 32px; }
    fieldset.form-section:first-of-type { padding-top: 40px; }
    
    legend.section-title { margin-bottom: 24px; gap: 14px; }
    legend.section-title h3 { font-size: 17px; }
    .section-icon { width: 44px; height: 44px; margin-top: 1px; }
    .section-icon svg { width: 20px; height: 20px; }

    .form-row         { grid-template-columns: 1fr; gap: 20px; }
    
    .form-footer { padding: 32px 24px 36px; }

    .footer-container { padding: 48px 20px; gap: 36px; grid-template-columns: 1fr; }
    .footer-bottom .footer-container { flex-direction: column; align-items: center; gap: 24px; }
    .footer-links     { gap: 16px; font-size: 13px; }
}

@media (max-width: 480px) {
    .navbar-container { height: 64px; }
    .navbar-logo img  { height: 36px; }
    
    .hero-container   { padding: 56px 16px; }
    .hero-content h1  { font-size: 32px; }
    .hero-content p   { font-size: 16px; }

    .main-content     { padding: 36px 0; }
    .form-container   { padding: 0 16px; }
    
    .form-header { margin-bottom: 28px; }
    .form-header h2 { font-size: 24px; }
    
    .modern-form      { border-radius: var(--radius-lg); }
    fieldset.form-section { padding: 28px 20px 24px; }
    fieldset.form-section:first-of-type { padding-top: 32px; }
    
    legend.section-title { margin-bottom: 20px; gap: 12px; }
    legend.section-title h3 { font-size: 16px; }
    .section-icon { width: 42px; height: 42px; margin-top: 1px; }
    .section-icon svg { width: 19px; height: 19px; }

    .form-footer { padding: 28px 20px 32px; }

    .modal-content    { padding: 28px; }
    .modal-header h3  { font-size: 22px; }
}