/* Main Frontend Styles */
@font-face {
    font-family: 'HuaweiSans';
    src: url('../fonts/HuaweiSans.woff2') format('woff2'),
         url('../fonts/HuaweiSans.woff') format('woff'),
         url('../fonts/HuaweiSans.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HuaweiSans';
    src: url('../fonts/HuaweiSansMedium.woff2') format('woff2'),
         url('../fonts/HuaweiSansMedium.woff') format('woff'),
         url('../fonts/HuaweiSansMedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HuaweiSans';
    src: url('../fonts/HuaweiSans-Bold.woff2') format('woff2'),
         url('../fonts/HuaweiSans-Bold.woff') format('woff'),
         url('../fonts/HuaweiSans-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HuaweiSans';
    src: url('../fonts/HuaweiSansLight.woff2') format('woff2'),
         url('../fonts/HuaweiSansLight.woff') format('woff'),
         url('../fonts/HuaweiSansLight.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HuaweiSans';
    src: url('../fonts/HuaweiSansThin.woff2') format('woff2'),
         url('../fonts/HuaweiSansThin.woff') format('woff'),
         url('../fonts/HuaweiSansThin.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: rgba(207, 10, 44, 1);
    --primary-dark: #c0392b;
    --secondary-color: #3498db;
    --success-color: #50daff;
    --warning-color: #f39c12;
    --danger-color: #e30613;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --muted-text: #6c757d;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: 'HuaweiSans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
}
ol{
    padding-left: 20px;
}
/* Login Page Styles */

.login-hero-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #000 url('../img/hero.png') no-repeat center center;
    background-size: cover;
    padding: 60px 5vw;
}

.register-hero-page {
    justify-content: center;
    align-items: center;
    background-attachment: fixed;
}

@media (min-width: 992px) {
    .login-hero-page {
        padding-left: 8vw;
        padding-right: 8vw;
    }
}

.login-hero-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 60%);
}

.login-panel {
    width: 100%;
    max-width: 424px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: -webkit-fill-available;
}

.register-hero-page .login-panel {
    max-width: 1100px;
}

.login-panel__brand {
    margin-bottom: 3rem;
}
 

.login-panel__headline h1 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.login-panel__headline p {
    color: #cfd2d8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.login-panel__form {
    margin-bottom: 2rem;
}

.login-input {
    background: #d8d8d8;
    border: none;
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: #111;
    font-size: 0.95rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.login-input::placeholder {
    color: #555;
}

.login-input:focus {
    outline: none;
    background: #e1e1e1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
    color: #111;
}

/* Login: wyłącz domyślne ikonki Bootstrap (zielony haczyk/czerwony krzyżyk) przy valid/invalid */
.login-panel__form .form-control.is-valid,
.login-panel__form .form-control.is-invalid,
.login-panel__form.was-validated .form-control:valid,
.login-panel__form.was-validated .form-control:invalid {
    background-image: none !important;
    padding-right: 1.2rem; /* taki sam jak bazowy login-input */
}

/* Przycisk togglePassword w formularzu hasła – czarne tło i jasna ikona */
#togglePassword,
#toggleConfirmPassword {
    background-color: #000;
    border-color: #000;
    color: #ffffff;
}

#togglePassword i,
#toggleConfirmPassword i {
    color: #ffffff;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.forgot-link a {
    color: inherit;
    text-decoration: none;
}

.forgot-link a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Forgot password popup (SPIF style) */
.forgot-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none; /* overridden to flex in JS when opened */
    align-items: center;
    justify-content: center;
}

.forgot-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.forgot-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 90%;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    padding: 24px 24px 20px;
    color: #ffffff;
}
.forgot-modal__dialog .form-label{
    color: #fff;
}
.forgot-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.forgot-modal__header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.forgot-modal__close {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.forgot-modal__body {
    font-size: 0.95rem;
}

#forgotPasswordMessage {
    min-height: 1.2em;
}

#forgotPasswordMessage.text-success {
    color: #50daff !important;
}

#forgotPasswordMessage.text-danger {
    color: #ff6b6b !important;
}

.login-primary,
.login-secondary {
    border-radius: 10px 0 10px 0;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-primary {
    background: #e30613;
    color: #fff;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.login-primary:hover {
    background: #ff002b;
    color: #fff;
}

.login-secondary {
    background: #e5e5e5;
    color: #111;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.login-secondary:hover {
    background: #ffffff;
    color: #111;
}

.login-panel__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

/* Registration in hero layout */
.register-hero-page .registration-container {
    background: transparent;
    min-height: auto;
    padding: 0;
}

.register-hero-page .registration-header h1,
.register-hero-page .registration-header p {
    color: #fff;
}

.register-hero-page .registration-header h1 {
    font-size: 1.9rem;
}

.register-hero-page .registration-form {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    margin-top: 0;
}

.register-hero-page .progress-steps,
.register-hero-page .form-navigation {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 20px 20px 0 0;
    padding: 0.75rem 1.5rem;
    margin-bottom: 0;
}

.register-hero-page .form-navigation {
    border-radius: 0 0 20px 20px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.register-hero-page .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
}

.register-hero-page .step-title {
    font-size: 0.75rem;
}

.register-hero-page .form-section {
    background: transparent;
}

.register-hero-page .form-section h4 {
    color: #fff;
    
}

.register-hero-page .form-label,
.register-hero-page .step-title,
.register-hero-page .step-info,
.register-hero-page .registration-header p {
    color: #f0f0f0;
}

.register-hero-page .form-control,
.register-hero-page .form-select {
    background: rgba(216, 216, 216, 0.8);
    border: none;
    border-radius: 10px 0 10px 0;
    padding: 11px 15px;
    color: #111;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);
}

.register-hero-page .form-control::placeholder,
.register-hero-page .form-select::placeholder {
    color: #555;
}

.register-hero-page .form-control:focus,
.register-hero-page .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.register-hero-page .form-check {
    background: rgba(216, 216, 216, 0.8);
    border-radius: 10px 0 10px 0;
    border: 1px solid transparent;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);

}

.register-hero-page .form-check-label {
    color: #111;
}

.register-hero-page .form-check:hover {
    background: transparent;
    border-color: #ffffff;
}

.register-hero-page .form-check:hover .form-check-label {
    color: #ffffff;
}

.login-alert {
    background: rgba(255, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.login-hero-visual {
    position: relative;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
}

.login-hero-visual__img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
}



.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 10px;
    border-left: 4px solid var(--danger-color);
}

/* Feature Icons */
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .login-form-container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .login-brand {
        padding: 2rem 1rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Registration Page Styles */
.registration-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.registration-header {
    text-align: center;
    margin-bottom: 2rem;
}

.registration-header h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.registration-header p {
    color: var(--muted-text);
    font-size: 1.1rem;
}

.registration-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 1.5rem;
    transition: all 0.3s ease;
    display: none;
}

.form-section.active {
    display: block;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.form-section h4 i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.form-control, .form-select {
    
    border-radius: 10px 0px 10px 0px;
    padding: 11px 15px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(231, 76, 60, 0.25);
    transform: translateY(-1px);
}

.form-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* Radio and Checkbox Styles */
.form-check {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.form-check:hover {
    border-color: var(--primary-color);
    background: rgba(231, 76, 60, 0.05);
}

.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
    margin-left: 0.5rem;
        width: 100%;
    height: 100%;
}

/* Tax Option Details */
.tax-option-details {
    background: transparent;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 1.5rem;
    border: 2px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

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

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    max-width: 120px;
}

.step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 60%;
    right: -40%;
    height: 3px;
    background: linear-gradient(to right, #e9ecef 0%, #e9ecef 100%);
    z-index: 1;
    border-radius: 2px;
}

.step:last-child::before {
    display: none;
}

.step.completed::before {
    background: linear-gradient(to right, var(--success-color) 0%, var(--success-color) 100%);
}

.step.active::before {
    background: linear-gradient(to right, var(--primary-color) 0%, #e9ecef 50%);
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: var(--muted-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    border: 3px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.step:hover .step-number {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step:hover .step-title {
    color: var(--primary-color);
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-dark);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    animation: pulse-step 2s infinite;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: #1e7e34;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 1.2rem;
    font-weight: bold;
}

.step-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted-text);
    line-height: 1.2;
    transition: all 0.3s ease;
}

.step.active .step-title {
    color: var(--primary-color);
    font-weight: 700;
    transform: scale(1.05);
}

.step.completed .step-title {
    color: var(--success-color);
    font-weight: 600;
}

@keyframes pulse-step {
    0% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(231, 76, 60, 0.6);
    }
    100% {
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: white;
    border-radius: 15px;
    margin: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-nav {
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-next {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Submit Button */
.submit-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    margin: 1.5rem;
    border-radius: 15px;
    display: none;
}

.submit-section.active {
    display: block;
}

.btn-register {
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

/* Registration-specific button styles in hero layout */
.register-hero-page .btn-nav {
    border-radius: 10px 0 10px 0;
    padding: 0.7rem 1.6rem;
}

.register-hero-page .btn-prev {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #f0f0f0;
}

.register-hero-page .btn-prev:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.register-hero-page .btn-next {
    background: #e30613;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.register-hero-page .btn-next:hover {
    background: #ff3040;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
    transform: translateY(-1px);
}

.register-hero-page .submit-section {
    background: transparent;
    margin: 1.5rem 0 0;
    padding-top: 1.5rem;
}

.register-hero-page .btn-register {
    background: #e30613;
    color: #ffffff;
    border-radius: 10px 0 10px 0;
    padding: 0.9rem 3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

.register-hero-page .btn-register:hover {
    background: #ff3040;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327ae60' d='m2.3 6.73.94-.94 2.94 2.94L8.5 6.4l.94.94L6.5 10.27z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 2.4 2.4m0-2.4L5.8 7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}



.spif-home {
    background-color: #000;
    color: #fff;
}

.spif-header {
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #fff;
}

.spif-header__inner {
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
}

.spif-header__logo {
    display: flex;
    flex-direction: column;
    margin-right: 32px;
}

.spif-header__logo-img {
    height: 28px;
    margin-bottom: 4px;
}

.spif-header__logo-subtitle {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #cfd2d8;
}

.spif-header__nav-link {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.16em;
    margin-right: 28px;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.spif-header__nav-link:last-child {
    margin-right: 0;
}

.spif-header__nav-link--active {
    border-bottom-color: #ffffff;
}

.spif-header__nav-link:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.spif-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.spif-header__user-box {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 0 0 20px 20px;
    border: 1px solid;
    background: #000;
    font-size: 13px;
    position: absolute;
    top: 100%;
    right: 4vw;
    z-index: 5;
}
 

.spif-header__user-label {
    opacity: 0.8;
}

.spif-header__user-name {
    font-weight: 600;
}

.spif-header__logout {
    color: #ffffff;
    text-decoration: none;
    margin-left: 6px;
}

.spif-header__logout:hover {
    color: var(--primary-color);
}

.spif-header__burger {
    display: none;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.spif-header__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.spif-header__burger.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.spif-header__burger.is-open span:nth-child(2) {
    opacity: 0;
}

.spif-header__burger.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.spif-header__nav-mobile {
    position: fixed;
    top: -100vh;
    left: 0;
    right: 0;
    background-color: #000000;
    border-bottom: 1px solid #ffffff;
    padding: 16px 1.5rem 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: top 0.25s ease;
    z-index: 900;
}

.spif-header__nav-mobile.is-open {
    top: 70px;
}

.spif-header__logout--mobile {
    color: #ffffff;
}

body.spif-menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .spif-header__burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        margin-right: 8px;
    }

    .spif-header__nav-mobile .spif-header__nav-link {
        margin-right: 0;
        font-size: 14px;
    }
}

.spif-header__brand-img {
    height: 26px;
}

.spif-main {
	position: relative;
	height: calc(100vh - 70px - 53px);
	margin-top: 70px;
	margin-bottom: 53px;
	overflow-y: auto;
}

.spif-main--account {
    background: #000 url('../img/hero_without__man.jpg') no-repeat center top;
    background-size: cover;
    background-attachment: fixed;
}
.spif-main--account .form-check{
    color: #000;
}
.spif-main--account .form-check:hover{
    color: #fff;
}
.home-hero {
    position: relative;
    min-height: calc(100vh - 70px);
    padding: 140px 4vw 100px;

    background: #000 url('../img/hero.png') no-repeat center top;
    background-size: cover;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    
}

.home-hero__content {
    position: relative;
    z-index: 1;
    margin-bottom: auto;
}

.home-hero__text {
    max-width: 700px;
    padding: 18px 22px;
    background: rgba(0, 0, 0, 0.82);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.home-hero__text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.9rem;
}

.home-hero__text p {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.home-section {
    position: relative;
    padding: 50px 0;
    color: #ffffff;
}

.account-section {
    position: relative;
    padding: 50px 0;
    color: #ffffff;
}

.account-section.account-section--centered {
    display: flex;
    align-items: center;
}

.account-section.account-section--centered .home-section__content {
    width: 100%;
}

.account-section .form-label {
    color: #ffffff;
}

.account-section .text-muted {
    color: #fff !important;
}

/* ID projektu w zakładce Projekty – czerwony kolor brandowy */
.account-section .account-project-id-code {
    color: var(--primary-color);
    font-weight: 600;
}

/* Nieinteraktywne opcje podatkowe w koncie – brak hovera i kursora ręki */
.account-section input[name="tax_option_display"],
.account-section input[name="tax_option_display"] + .form-check-label {
    cursor: default;
}

.account-section .form-check:hover{
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.home-section__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.18), transparent 60%);
}

.home-section__overlay--third {
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 60%);
}

.home-section__content {
    position: relative;
    z-index: 1;
}
#news .home-section__content {
    position: relative;
    z-index: 1;
}
#news .home-section__content::after{
    content: "";
    position: absolute;
    inset: 0;              /* top:0; right:0; bottom:0; left:0; */
    background: url('../img/cart.png') no-repeat center left;
    background-size: contain;  /* або cover, залежно від бажаного ефекту */
    z-index: 1;
    pointer-events: none; 
}

.home-section--second {
    background: #000 url('../img/section_second.png') no-repeat center center;
    background-size: cover;
}

.home-section--third {

}

.home-section__header h2 {
    font-size: 2.1rem;
    margin-bottom: 0.25rem;
}

.home-section__header p {
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

/* Statusy karty – własne kolory zgodne z brandingiem */
.badge-card-status {
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
    border-radius: 10px 0 10px 0;
}

.badge-card-status--pending {
    background-color: var(--primary-color);
    color: #ffffff;
}

.badge-card-status--confirmed {
    background-color: #007bff;
    color: #ffffff;
}

/* Uniwersalny panel SPIF: półprzezroczyste ciemne tło + jasna ramka */
.content-card {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
    overflow: hidden;
}

.content-card .card-header {
    background: rgba(0, 0, 0, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
}

.content-card .card-body {
    padding: 1.75rem 1.75rem 1.5rem;
}
.card-body hr{
    margin-bottom: 0px;
}

/* News: karta bez własnego tła/obramowania/cienia, tylko struktura w środku */
.content-card.content-card--news {
    background: transparent;
    border: none;
    box-shadow: none;
}

/* Formularze i akordeony na ciemnym tle (konto, kontakt, news) */
.account-section .content-card .form-control {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
}

.account-section .content-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.account-section .content-card .form-control:focus {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.4);
}

.account-section .content-card .accordion-item {
    background-color: rgba(0, 0, 0, 0.82);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.9);
}

.account-section .content-card .accordion-button {
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    border: 1px solid #fff;
}
.account-section .content-card .accordion-button:focus{
    box-shadow: none;

}


.account-section .content-card .accordion-body {
    background-color: transparent;
    color: #ffffff;
}

/* Białe strzałki w akordeonie na ciemnym tle */
.account-section .content-card .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    filter: none;
}

/* Account page tabs */
.account-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0.25rem;
    border-radius: 10px 0 10px 0;
    background: #50daff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.95);
    margin-bottom: 1.75rem;
}

.account-tab {
    border: none;
    background: transparent;
    color: #ffffff;
    padding: 0.4rem 1.2rem;
    border-radius: 10px 0 10px 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.account-tab--active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    
}
code{
    font-size: 1em;
}
.account-tab:hover:not(.account-tab--active) {
    background: rgba(0, 0, 0, 0.35);
    
}

.account-tab-content {
    margin-top: 0.5rem;
}

.account-tab-pane {
    display: none;
}

.account-tab-pane--active {
    display: block;
}

/* Account - card section */
.account-card-row {
    align-items: center;
}

.account-card-form {
    max-width: 420px;
}

.account-card-input {
    border-radius: 10px 0 10px 0;
}

.account-card-submit {
    min-width: 130px;
}

.spif-card-visual {
    position: relative;
    width: 60%;
    
    aspect-ratio: 16 / 10;
    border-radius: 18px;
    background: url('../img/cart__account.png') no-repeat center center;
    background-size: contain;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.spif-card-visual__stripe {
    display: none;
}

.spif-card-visual__stripe--upper {
    top: 32%;
    height: 18%;
}

.spif-card-visual__stripe--lower {
    top: 52%;
    height: 12%;
    opacity: 0.9;
}

.spif-card-visual__number {
    position: absolute;
    top: 18%;
    right: 18px;
    font-weight: 600;
    letter-spacing: 0.16em;
    font-size: 0.9rem;
    color: #ffffff;
}

.spif-card-visual__hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #cfd2d8;
    max-width: 280px;
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    column-gap: 40px;
    row-gap: 16px;
    margin-bottom: 4rem;


}
 
.home-step__number:first-child span{
    margin-left: -25px;
}

.home-step__number {
    font-size: 180px;
    font-weight: 500;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px #ffffff;
    display: flex;
    justify-content: center;
    
}

.home-step__text {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.home-section__note h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.home-section__note ul {
    padding-left: 1.2rem;
    margin: 0;
    list-style: disc;
}

.home-section__note li {
    margin-bottom: 0.4rem;
    font-size: 0.96rem;
}

.home-contact-banner {
    background: rgba(217, 217, 217, 1);
    color: #000000;
    padding: 30px 0;
}

.home-contact-banner__inner {
    max-width: 980px;
}

.home-contact-banner__title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.home-contact-banner__subtitle {
    font-size: 1rem;
    font-weight: 600;
}

.home-contact-banner__text {
    font-size: 0.95rem;
}

.home-contact-banner__text a {
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
}

.home-step:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.home-step:nth-child(2) {
    grid-column: 2;
    grid-row: 2 / span 2;
}

.home-step:nth-child(3) {
    grid-column: 3;
    grid-row: 1 / span 2;
}

.home-step:nth-child(4) {
    grid-column: 4;
    grid-row: 2 / span 2;
}

.home-card-visual {
    width: 100%;
    min-height: 260px;
    border-radius: 12px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 60%),
        url('../img/hero.png') no-repeat center center;
    background-size: cover;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.home-card-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.home-card-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.home-card-content p,
.home-card-content li {
    font-size: 0.98rem;
    line-height: 1.6;
}

.home-card-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.home-reward h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
}

.home-reward__columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin: 1rem 0 1.25rem;
}

.home-reward__columns h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.home-reward__columns ul {
    padding-left: 1.2rem;
    margin: 0;
}

.home-reward-note {
    font-size: 0.9rem;
    opacity: 0.9;
}

.home-section--reward {
    background-color: #000;
 
}

.home-reward-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 48px;
    margin-top: 2rem;
}

.home-reward-layout h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.home-reward-layout ul {
    padding-left: 1.2rem;
    margin: 0;
}

.home-reward-layout__right p + h3 {
    margin-top: 1.5rem;
}

.home-footer-section {
    margin-top: 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
}

.home-footer-section__top {
    background-color: #dedede;
    color: #111;
    padding: 40px 0 36px;
}

.home-footer-section__top h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

.home-footer-section__lead {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.home-footer-section__bottom {
    background-color: #000000;
    color: #ffffff;
    padding: 16px 0;
    font-size: 0.85rem;
}

.home-footer-section__links a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    margin-right: 14px;
}

.home-footer-section__links span {
    margin-right: 14px;
}

.home-footer-section__links a:hover {
    text-decoration: underline;
}

.home-footer-section__credits span {
    font-weight: 600;
}

/* Registration success popup */
.flash-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.flash-modal {
    position: relative;
    max-width: 520px;
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 32px 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.flash-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6f9ff;
    color: var(--success-color);
    font-size: 32px;
}

.flash-modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.flash-modal-text {
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.flash-modal-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-align: left;
    background-color: #e6f9ff;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.flash-modal-info-icon {
    font-size: 1.3rem;
    margin-top: 4px;
    color: #0077aa;
}

.flash-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
}

@media (max-width: 992px) {
    .home-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 32px;
    }

    .home-reward__columns {
        grid-template-columns: 1fr;
    }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-container {
        padding: 1rem 0;
    }
    
    .form-section {
        margin: 1rem;
        padding: 0 0 1.5rem 0;
    }
    .form-section h4{
        font-size: 16px;
    }
    .form-navigation{
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .progress-steps {
        padding: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        max-width: none;
        flex: 1;
        min-width: 80px;
    }
    
    .step::before {
        display: none;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    .registration-header h1 {
        font-size: 2rem;
    }
    .form-check-label{
        font-size: 12px;
    }
    .register-hero-page .btn-register{
        font-size: 15px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .home-steps{
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
        align-self: center;
    }
    .home-step__number{
        font-size: 150px;
    }
        .spif-header__inner {
        padding-left: 10px;
        padding-right: 10px;
        align-items: center;
        gap: 12px;
    }
    .account-card-input{
        font-size: .7rem;
    }
    .spif-card-visual{
        width: 100%;
    }
    .spif-header__user-box {
        position: static;
        margin-top: 8px;
    }

    .home-hero {
        padding: 120px 1.5rem 100px;
    }

    .home-section {
        padding: 80px 1.5rem 90px;
    }

   #news .home-section__content::after{
    content: none;
   }
    .home-reward-layout{
        grid-template-columns: 1fr;
    }
    .home-card-content>*{
        text-align: left !important;
    }
    #news{
        padding-bottom: 0 !important;
    }

    .flash-alert {
        left: 0 !important;
        right: 0;
        transform: none !important;
        width: 100%;
        padding: 0 12px;
    }

    .flash-alert .alert {
        border-radius: 0;
        margin: 0;
    }

    .alert {
        width: 100%;
        box-sizing: border-box;
    }
    .login-hero-page{
            padding: 60px 2vw;
    }
    .login-panel__brand{
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 576px) {
    .home-hero__text h1 {
        font-size: 1.8rem;
    }
    .spif-main{
            height: calc(100vh - 70px - 88px);
    }

}

@media (max-width: 480px) {
    .progress-steps {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .step {
        display: flex;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 200px;
        text-align: left;
    }
    
    .step-number {
        margin: 0;
        flex-shrink: 0;
    }
    
    .step-title {
        margin: 0;
        text-align: left;
    }
}

/* Logged-in Home Page */


