:root {
    --navy: #002D62;
    --red: #CE1126;
    --blue: #0055A4;
    --white: #FFFFFF;
    --gray-bg: #F8F9FA;
    --text-main: #1A1A1A;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --primary: #d4af37;
    --success: #10b981;
    --danger: #ef4444;
}

[data-theme="dark"] {
    --bg-page: #0f172a;
    --white: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gray-bg: #1e293b;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAV BAR --- */
.glass-nav {
    background: var(--navy);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 70px;
    transition: height 0.3s;
}

.logo-text-official {
    color: #FFFFFF !important;
    display: flex;
    flex-direction: column;
}

.line-1 { font-weight: 700; font-size: 1.1rem; color: #FFFFFF !important; }
.line-2 { font-size: 0.85rem; opacity: 0.9; color: #FFFFFF !important; }
.line-3 { font-size: 0.75rem; opacity: 0.8; color: #FFFFFF !important; }

.red-bar-official {
    height: 3px;
    background: var(--red);
    width: 40px;
    margin-top: 5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links-official {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.primary-btn-nav {
    background: var(--blue);
    color: white;
}

.primary-btn-nav:hover {
    background: #004488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 85, 164, 0.3);
}

.secondary-btn-nav {
    background: white;
    color: var(--navy);
}

.secondary-btn-nav:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

@media (max-width: 992px) {
    .nav-links-official { display: none; }
}

.theme-switch, .admin-access-mini {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.theme-switch:hover, .admin-access-mini:hover {
    background: rgba(255,255,255,0.2);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--navy) 0%, #001a33 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-accent { color: var(--red); }

.hero-section p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 5px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-box i { color: var(--navy); margin-right: 15px; }
.search-box input {
    border: none;
    padding: 15px 0;
    width: 100%;
    font-size: 1rem;
    outline: none;
    color: var(--navy);
}

/* --- SERVICES GRID --- */
.services-section { padding: 40px 0; }
.section-header { text-align: center; margin-bottom: 30px; }
.header-line { width: 50px; height: 4px; background: var(--red); margin: 0 auto 15px; }

.services-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.service-card-modern {
    background: white;
    border-radius: 32px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 45, 98, 0.04), 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: var(--navy);
    position: relative;
    overflow: hidden;
}

.service-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 45, 98, 0.12);
}

.service-card-modern.selected {
    background: var(--navy);
    color: white !important;
}

.icon-wrapper-modern {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--navy);
    margin: 0 auto 25px;
    transition: 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.selected .icon-wrapper-modern {
    background: rgba(255,255,255,0.15);
    color: white;
}

.service-card-modern h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    color: inherit;
}

.price-badge {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 20px;
    transition: 0.3s;
}

.selected .price-badge { background: rgba(255,255,255,0.08); }

.price-eur-large { display: block; font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.selected .price-eur-large { color: white; }
.price-czk-small { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.selected .price-czk-small { color: rgba(255,255,255,0.6); }

.btn-add-modern {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 45, 98, 0.15);
    background: #f8fafc;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn-add-modern:hover {
    background: linear-gradient(135deg, #CE1126 0%, #a11122 100%);
    border-color: #CE1126;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(206, 17, 38, 0.2);
}

.btn-add-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.btn-add-modern:hover::after {
    left: 150%;
    transition: 0.7s;
}

.selected .btn-add-modern {
    background: white;
    color: var(--navy);
    border-color: white;
}

.selected .btn-add-modern:hover {
    background: #f8fafc;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

.btn-requirements-minimal {
    background: #f1f5f9;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 8px 16px;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.selected .btn-requirements-minimal {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-requirements-minimal:hover {
    background: var(--navy);
    color: white;
}

.selected .btn-requirements-minimal:hover {
    background: white;
    color: var(--navy);
}

/* --- SELECTION BAR --- */
.selection-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    width: 90%;
    max-width: 500px;
    background: var(--navy);
    padding: 15px 30px;
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
}

.selection-bar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.selection-info h4 { color: white; margin: 0; font-size: 1.1rem; font-weight: 700; }
.selection-info p { color: rgba(255,255,255,0.8); margin: 0; font-size: 0.85rem; }

#btn-to-form {
    background: white;
    color: var(--navy);
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
}

#btn-to-form:hover { transform: scale(1.05); }

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

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

.modal-container {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

.modal-header {
    background: var(--navy);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body { padding: 30px; }
.modal-footer { padding: 20px; border-top: 1px solid #eee; text-align: center; }

/* --- SCREENS --- */
.screen { display: none; }
.screen.active { display: block; }

/* --- FORM --- */
.form-container {
    max-width: 900px;
    margin: 120px auto 60px;
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; }

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
}

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

.input-field-boutique { margin-bottom: 22px; }
.input-field-boutique label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 700; 
    margin-bottom: 8px; 
    color: var(--text-muted); 
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.input-wrapper-boutique { position: relative; }
.input-wrapper-boutique i { 
    position: absolute; 
    left: 16px; 
    top: 50%;
    transform: translateY(-50%);
    color: var(--navy); 
    opacity: 0.6;
    transition: 0.3s;
}
.input-wrapper-boutique input, 
.input-wrapper-boutique textarea {
    width: 100%;
    padding: 14px 16px 14px 46px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.input-wrapper-boutique textarea {
    min-height: 100px;
    resize: none;
    padding-top: 16px;
}

.input-wrapper-boutique i[style*="top:15px"] {
    top: 22px;
}

.input-wrapper-boutique input:focus, 
.input-wrapper-boutique textarea:focus { 
    border-color: var(--navy); 
    outline: none; 
    box-shadow: 0 0 0 4px rgba(0, 45, 98, 0.1), 0 4px 12px rgba(0, 45, 98, 0.05);
    background: #fff;
}

.input-wrapper-boutique input:focus + i, 
.input-wrapper-boutique textarea:focus + i {
    opacity: 1;
    color: var(--navy);
}

/* --- FILE UPLOAD --- */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-dummy {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-dummy i {
    font-size: 2rem;
    color: var(--navy);
    opacity: 0.4;
    transition: 0.3s;
}

.file-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.file-upload-wrapper:hover .file-dummy {
    border-color: var(--navy);
    background: #f0f4f8;
}

.file-upload-wrapper:hover .file-dummy i {
    opacity: 1;
    transform: translateY(-3px);
}

/* --- FOOTER --- */

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 100px;
}

.institutional-footer {
    position: relative;
    background: #001a33;
    color: white;
    padding: 100px 0 30px;
    margin-top: 0;
}
.footer-logos { display: flex; justify-content: center; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 80px; }
.footer-text { text-align: center; }
.footer-title { font-size: 1.1rem; margin-bottom: 5px; }
.footer-subtitle { font-size: 0.9rem; opacity: 0.7; margin-bottom: 20px; }
.footer-info { font-size: 0.85rem; opacity: 0.6; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; font-size: 0.8rem; }
.footer-links a { color: white; text-decoration: none; opacity: 0.7; }
.footer-links a:hover { opacity: 1; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.fade-in { animation: fadeInUp 0.5s ease; }

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 70px;
    position: relative;
    bottom: -1px;
}





.main-content-wrapper { padding-bottom: 60px; }


.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.btn-modal-action {
    background: var(--navy);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 45, 98, 0.2);
}

.btn-modal-action:hover {
    background: #001a33;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 45, 98, 0.3);
}

.btn-modal-action i {
    margin-right: 10px;
}
.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}



.nav-search {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-search:focus-within {
    background: white;
    width: 300px;
    border-color: white;
}

.nav-search i {
    color: white;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-search:focus-within i {
    color: var(--navy);
}

.nav-search input {
    background: transparent;
    border: none;
    color: white;
    outline: none;
    font-size: 0.85rem;
    width: 120px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.nav-search:focus-within input {
    color: var(--navy);
    width: 100%;
}

.glass-nav.scrolled {
    background: rgba(0, 45, 98, 0.95) !important;
    backdrop-filter: blur(15px);
    padding: 8px 0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.glass-nav.scrolled .nav-logo {
    height: 55px;
}



.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 25px 0; text-align: center; opacity: 0.8; font-size: 0.9rem; }


/* ===== FORM MODAL ===== */
.form-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 50, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.form-modal-overlay.active {
    display: flex;
}

.form-modal-container {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-modal-header {
    background: linear-gradient(135deg, var(--navy) 0%, #001a33 100%);
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.form-modal-title i {
    font-size: 1.4rem;
    opacity: 0.9;
}

.form-modal-title h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.form-modal-body {
    overflow-y: auto;
    padding: 30px 28px;
    flex: 1;
}

/* ===== FORM LAYOUT & SIDEBAR ===== */
.form-layout { 
    display: grid; 
    grid-template-columns: 1fr 340px; 
    gap: 40px; 
    align-items: start;
}

.form-main-side {
    padding-right: 10px;
}

.form-sidebar {
    background: #f8fafc;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
}

.order-summary-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.order-item {
    background: white;
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eef2f7;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.order-item:hover {
    transform: translateX(5px);
    border-color: var(--navy);
    box-shadow: 0 4px 10px rgba(0, 45, 98, 0.08);
}

.order-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item span i {
    color: #10b981;
    font-size: 1rem;
}

.order-item strong {
    font-size: 0.9rem;
    color: var(--navy);
    font-weight: 800;
}

/* --- MODAL REFACTOR PREMIUM --- */
.order-total-premium {
    background: linear-gradient(135deg, var(--navy) 0%, #001a33 100%);
    padding: 20px;
    border-radius: 16px;
    color: white;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 25px rgba(0, 45, 98, 0.15);
}

.order-total-premium label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 6px;
    font-weight: 700;
}

.order-total-premium h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.order-total-premium span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-confirm-checkout {
    background: var(--red);
    color: white !important;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(206, 17, 38, 0.2);
}

.btn-confirm-checkout:hover {
    background: #a80e1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(206, 17, 38, 0.3);
}

.btn-cancel-checkout {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-checkout:hover {
    background: #e2e8f0;
    color: #475569;
}

.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
    opacity: 0.8;
}

.secure-badge i { color: #10b981; }

.sidebar-card {
    position: sticky;
    top: 0;
}

.file-list-grid-modern {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 15px;
}

/* --- PAYMENT SUMMARY LIST --- */
.payment-services-list .mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: 0.2s;
}

.payment-services-list .mini-item:hover {
    background: rgba(0, 45, 98, 0.02);
    padding-left: 5px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eef2f7;
}

@media (max-width: 850px) {
    .form-layout {
        grid-template-columns: 1fr;
    }
    .form-sidebar {
        position: static;
        margin-top: 30px;
    }
}
/* ===== PREMIUM PAYMENT MODAL ===== */
.payment-modal-container {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 520px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,20,60,0.45);
    animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.payment-modal-header {
    background: linear-gradient(135deg, #002D62 0%, #00459e 100%);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-modal-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.payment-shield-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
}

.payment-modal-title-row h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: white;
}

.payment-modal-title-row p {
    font-size: 0.8rem;
    margin: 0;
    color: rgba(255,255,255,0.7);
}

.payment-modal-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
    flex-shrink: 0;
}
.payment-modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.payment-modal-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Client info pills */
.payment-client-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-info-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f4f7fb;
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid #e8edf5;
}

.payment-info-pill > i {
    font-size: 1.1rem;
    color: #002D62;
    opacity: 0.7;
    flex-shrink: 0;
}

.payment-info-pill div {
    min-width: 0;
}

.pill-label {
    display: block;
    font-size: 0.7rem;
    color: #8899aa;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 2px;
}

.payment-info-pill strong {
    display: block;
    font-size: 0.88rem;
    color: #002D62;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Services section */
.payment-services-section {
    background: #f9fafb;
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid #e8edf5;
}

.payment-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8899aa;
    margin-bottom: 12px;
}

.payment-section-label i {
    color: #002D62;
}

.payment-services-list .mini-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #eef0f4;
    font-size: 0.875rem;
    color: #1a2940;
}

.payment-services-list .mini-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.payment-services-list .mini-item strong {
    color: #002D62;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
}

/* Total hero */
.payment-total-hero {
    background: linear-gradient(135deg, #002D62, #003d87);
    border-radius: 18px;
    padding: 22px 24px;
    text-align: center;
    color: white;
}

.total-hero-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.75;
    margin-bottom: 6px;
    font-weight: 600;
}

.total-hero-amount {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 4px;
}

.total-hero-czk {
    font-size: 0.85rem;
    opacity: 0.65;
    font-weight: 500;
}

/* Trust row */
.payment-trust-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #f0fdf4;
    border-radius: 12px;
    border: 1px solid #d1fae5;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
}

.trust-badge i {
    font-size: 0.9rem;
}

.payment-card-icons {
    display: flex;
    gap: 8px;
    font-size: 1.6rem;
    color: #44556e;
}

/* Action buttons */
.payment-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-payment-back {
    background: #f4f7fb;
    color: #002D62;
    border: 1px solid #d0daea;
    border-radius: 12px;
    padding: 12px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.btn-payment-back:hover {
    background: #e8edf5;
    border-color: #b0bfcf;
}

.btn-pay-now {
    flex: 1;
    background: linear-gradient(135deg, #CE1126, #a80e1f);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(206,17,38,0.35);
    transition: all 0.2s;
    letter-spacing: 0.02em;
}
.btn-pay-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(206,17,38,0.45);
}

@media (max-width: 540px) {
    .payment-client-row { grid-template-columns: 1fr; }
    .payment-modal-body { padding: 18px 16px 20px; }
    .total-hero-amount { font-size: 2rem; }
    .payment-modal-actions { flex-wrap: wrap; }
    .btn-pay-now { width: 100%; }
}
/* ===== PREMIUM SUCCESS SCREEN ===== */
#screen-success {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    min-height: 80vh;
}
#screen-success.active {
    display: flex;
}

.success-premium-card {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 580px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 45, 98, 0.15);
    position: relative;
    text-align: center;
}

.success-header-decor {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    height: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.success-checkmark-wrapper {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #059669;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
    margin-bottom: -40px;
    z-index: 2;
    border: 4px solid #fff;
}

.success-body {
    padding: 60px 40px 40px;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a2940;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.success-message {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
.success-message p { margin: 0 0 10px; }

.success-reference-box {
    background: #f0fdf4;
    border: 1px dashed #34d399;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 35px;
}

.ref-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.ref-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #002D62;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.ref-hint {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-track-premium {
    background: #002D62;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(0, 45, 98, 0.2);
}
.btn-track-premium:hover {
    background: #00459e;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 45, 98, 0.3);
}

.btn-primary-outline {
    background: transparent;
    color: #002D62;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}
.btn-primary-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

@media (max-width: 600px) {
    .success-body { padding: 50px 20px 30px; }
    .success-title { font-size: 1.5rem; }
    .ref-value { font-size: 1.3rem; }
}
/* --- BUTTON SYSTEM REFINEMENT --- */
.btn-primary {
    background: linear-gradient(135deg, var(--navy) 0%, #00459e 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0, 45, 98, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 45, 98, 0.35);
    filter: brightness(1.1);
}

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

.btn-secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Specific button in success screen */
.btn-primary-outline {
    background: #f1f5f9 !important; /* Adding color as requested */
    color: var(--navy) !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.3s ease !important;
}

.btn-primary-outline:hover {
    background: #e2e8f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Modal action buttons */
.btn-modal-action {
    background: var(--red);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.btn-modal-action:hover {
    background: #a80e1f;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(206, 17, 38, 0.3);
}

/* Floating bar button */
#btn-to-form:hover {
    background: #f8fafc !important;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* --- FILE PREVIEW ITEMS --- */
/* --- FILE PREVIEW ITEMS --- */
.file-list-grid-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 15px;
}

.file-group-images, .file-group-pdfs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.file-group-title {
    width: 100%;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-group-title i { color: var(--navy); opacity: 0.7; }

.file-preview-item-modern {
    background: #fdfdfd;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeInUp 0.3s ease;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
}

.file-preview-item-modern:hover {
    border-color: var(--navy);
    box-shadow: 0 4px 12px rgba(0, 45, 98, 0.08);
}

.file-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.file-icon-box {
    font-size: 1rem;
    color: var(--navy);
    background: #f0f4f8;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--navy);
    white-space:nowrap; 
    overflow:hidden; 
    text-overflow:ellipsis;
}

.file-size {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.btn-remove-file {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #fee2e2;
    border: 1.5px solid #fff;
    color: #ef4444;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-size: 0.7rem;
}

.btn-remove-file:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

.file-preview-img-container {
    text-align: center;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    margin-top: 2px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.file-preview-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
    outline: none;
    font-family: inherit;
    transition: all 0.2s ease;
}

.file-label-input:focus {
    border-color: var(--navy);
    background: #f8fafc;
}

.file-preview-img-container {
    text-align: center;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 12px;
    margin-top: 5px;
}

.file-preview-img-container img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- RESPONSIVENESS --- */
}

/* --- MOBILE RESPONSIVENESS IMPROVEMENTS --- */
@media (max-width: 1024px) {
    .nav-search { display: none; }
    .hero-section h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-content { padding: 0 15px; }
    .logo-text-official { display: none; } /* Ocultar texto largo en movil */
    .nav-logo { height: 50px; }
    
    .nav-links-official {
        display: none; /* Ocultar botones en movil para usar menu burguer o simplificar */
    }

    .hero-section { padding: 120px 0 40px; }
    .hero-section h1 { font-size: 2rem; padding: 0 15px; }
    .hero-section p { font-size: 1rem; padding: 0 20px; }

    .registration-hero { padding: 120px 0 60px; }
    .registration-hero h2 { font-size: 1.8rem; padding: 0 15px; }
    .registration-hero p { font-size: 0.95rem; padding: 0 20px; }

    .registration-container {
        margin: 20px 15px;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .form-header h1 { font-size: 1.8rem; }
    
    .footer-logos { flex-direction: column; align-items: center; gap: 20px; }
    .footer-logo { height: 60px; }
}

@media (max-width: 480px) {
    .nav-right { gap: 8px; }
    .hero-section h1 { font-size: 1.6rem; }
    .btn-submit-registration { padding: 15px; font-size: 1rem; }
}

.btn-pay-now {
    background: var(--red);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
}

}

/* --- MOBILE MENU --- */
.mobile-only { display: none; }

@media (max-width: 768px) {
    .mobile-only { display: flex; }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0, 45, 98, 0.98);
    z-index: 2000;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
}

.close-mobile-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: 0.3s;
}

.mobile-nav-link:hover {
    color: var(--primary);
    transform: scale(1.1);
}