/* ========================================
   Phone Input with Prefix (+48)
   ======================================== */

/* Reguła dla modali: pojedynczy przycisk w kontenerach akcji zajmuje pełną szerokość */
.modal .form-actions button:only-child,
.modal .form-actions .btn:only-child,
.modal-overlay .form-actions button:only-child,
.modal-overlay .form-actions .btn:only-child,
.api-modal .form-actions button:only-child,
.api-modal .form-actions .btn:only-child,
.billing-modal .form-actions button:only-child,
.billing-modal .form-actions .btn:only-child,
.billing-modal-content .billing-modal-actions button:only-child,
.billing-modal-content .billing-modal-actions .btn:only-child {
    width: 100% !important;
}

/* Dostępność: jednolity focus dla przycisków */
[class*="btn"]:focus-visible,
[class*="button"]:focus-visible,
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.25);
}

.phone-input-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #ced4da;
    border-radius: 6px;
    overflow: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.phone-input-wrapper:focus-within {
    border-color: #0B4A73;
    box-shadow: 0 0 0 0.2rem rgba(11, 74, 115, 0.1);
}

.phone-prefix {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    background: #f8f9fa;
    padding: 0 1rem;
    font-weight: 600;
    color: #003153;
    border-right: 1px solid #ced4da;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.phone-input-wrapper > * {
    min-width: 0;
}

.phone-input-wrapper input[type="tel"] {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.phone-input-wrapper input[type="tel"].hm-form-control,
.phone-input-wrapper input[type="tel"].phone-input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    padding: 0.675rem 1rem;
    outline: none;
    box-shadow: none !important;
}

.phone-input-wrapper input[type="tel"]:focus {
    box-shadow: none !important;
}

/* ========================================
   Account Type Selection
   ======================================== */
/* Style dla wyboru typu konta */
.account-type-title {
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 24px;
    font-weight: 600;
}

.account-type-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 16px;
}

.account-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 2rem;
}

/* Style dla wyboru typu konta przeniesione do auth.css */

.registration-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.registration-buttons .btn {
    margin: 0;
    padding: 0.625rem 1.5rem;
}

/* Style dla wyboru pakietów subskrypcji */
.access-packages {
    margin-bottom: 2rem;
}

.access-packages h3 {
    text-align: center;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 24px;
    font-weight: 600;
}

.access-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 16px;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 2rem;
}

.package-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
}

.package-card:hover {
    border-color: #003153;
    box-shadow: 0 4px 12px rgba(0, 49, 83, 0.15);
    transform: translateY(-2px);
}

.package-card.selected {
    border-color: #003153;
    background: #e3f2fd;
    box-shadow: 0 4px 12px rgba(0, 49, 83, 0.2);
}

.package-card.recommended {
    border-color: #003153;
    box-shadow: 0 2px 8px rgba(0, 49, 83, 0.1);
}

.package-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #003153;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.package-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.package-header h4 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.package-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

/* Komponenty cenowe - podstawowa definicja */
.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #003153;
}

.price-currency {
    font-size: 18px;
    font-weight: 600;
    color: #003153;
}

.price-period {
    font-size: 14px;
    color: #666;
}

/* Wariant mniejszy dla access.css */
.price-option .price-amount {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.25rem;
}

/* Wariant bardzo duży dla dla-zespolow.css */
.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: #003d82;
}

.price-per-seat {
    text-align: center;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Wariant większy dla team.css */
.team-package .price-per-seat {
    font-size: 18px;
    font-weight: 600;
    color: #003d82;
}

.package-savings {
    background: #e3f2fd;
    color: #003153;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}

.package-features li {
    padding: 0.375rem 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 1.25rem;
}

.package-features li:before {
    content: "✓";
    color: #003153;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.package-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    font-style: italic;
}

.optional-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
}

.checkbox-div {
    display: flex;
    margin-bottom: 0.625rem;
}

.checkbox {
    align-items: flex-start;
    border-radius: 4px;
    display: inline-block;
    height: 24px;
    margin: 0rem;
    position: relative;
    vertical-align: middle;
    width: 24px;
    transform: scale(1.5);
}

.checkbox-div label {
    position: relative;
    font-size: 12px;
    line-height: 18px;
    margin-left: 1rem;
    margin-top: 0.3125rem;
    user-select: none;
    cursor: pointer;
}

input[type="checkbox"] {
    cursor: pointer;
}

/* Checkboxy i zgody */
.terms-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 0.75rem;
}

.terms-checkbox-wrapper--compact {
    margin-bottom: 0;
}

.terms-checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    transform: scale(1.25);
}

.terms-text {
    font-size: 15px;
    color: #656565;
    font-weight: normal;
    line-height: 1.4;
    user-select: none;
    text-align: left;
    cursor: pointer;
}

.terms-text a {
    color: #003153;
    text-decoration: none;
    user-select: auto;
    cursor: pointer;
}

.terms-text a:hover {
    text-decoration: underline;
}

.terms-text--optional {
    font-size: 13.5px;
    color: #888;
}

/* ============================================
   DROPDOWN - CSS Hover Based
   Używa: .dropdown-content (automatyczne otwieranie przez :hover)
   
   UWAGA: W team.css istnieje drugi system dropdown:
   - .dropdown-menu (otwieranie przez JavaScript z klasą .show)
   - Różne przypadki użycia - ZACHOWAĆ OBA!
   ============================================ */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 140px;
    max-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 10px);
    font-size: 0.9em;
    transition: opacity 0.2s ease-in, visibility 0.2s ease-in;
}

.dropdown-content a {
    color: #333 !important;
    padding: 0.625rem;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #003153 !important;
}

.dropbtn:focus {
    outline: 2px solid #003153;
}

/* Dropdown - Style uniwersalne */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.75rem;
    width: 100%;
    border: none;
    background: none;
    color: #656565;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.delete:hover {
    background: #ffebee;
    color: #c62828;
}

/* Pakiety promocyjne */
.promotion-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 1.25rem;
}

/* .package-card - główna definicja wyżej w pliku (linia 125) */

/* System przycisków */
button {
    cursor: pointer;
}

.btn {
    display: inline-block;
    padding: 0.625rem 1.125rem;
    background-color: #003153;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    font-size: 16.5px;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.btn:hover {
    background-color: #0B4A73;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

.btn.btn-secondary {
    background-color: #f1f5f9;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.btn.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #9ca3af;
    color: #374151;
    box-shadow: none;
    transform: none;
}

/* Przycisk wyłączony */
.btn:disabled,
.btn.disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled:hover,
.btn.disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    transform: none;
}

.btn-blank {
    background-color: white;
    color: #003153;
}

.btn-blank:hover {
    background-color: #f9f9f9;
}

.btn-ghost {
    background: none;
    border: none;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.btn-ghost:hover {
    color: #003153;
}

.btn-full-width {
    width: 100%;
}

.submit-button {
    background-color: #F39C12;
    color: white;
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #e08c0e;
}

.logout-btn {
    float: right;
}

.logout-btn:hover {
    background-color: #bb2d3b !important;
}

.add-listing-btn {
    padding: 0.625rem 1.25rem;
    background-color: #ffffff;
    color: #22313f;
    text-decoration: none;
    border: 3px solid #22313f;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.add-listing-btn:hover {
    background-color: #22313f;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-add-listing {
    border-radius: 5px;
    margin-top: 0.9375rem;
    margin-left: auto;
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 18px;
    width: fit-content;
}

/* Counter znaków w dodawaniu ogłoszenia */
.field-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    color: #666;
    width: 70%;
    /* To samo co szerokość pola */
}

.field-requirement {
    flex: 1;
}

.char-counter {
    text-align: right;
    min-width: 70px;
    /* Zapewnia minimalną szerokość dla licznika */
}

/* Podstawowe style formularzy */
.form-border {
    background-color: #fff;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.25rem;
}

/* Form-border dla auth pages - większy padding i centrowanie */
.login-register .form-border,
.auth-page .form-border {
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
}

.form-border::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   UWAGA: .form-section ma DWA RÓŻNE ZNACZENIA (ZACHOWAĆ OBA!)
   
   forms.css: .form-section = sekcja wewnątrz formularza (visual section)
   auth.css: .form-section = kontener strony (layout wrapper)
   
   Różne konteksty, różne style - CELOWO!
   ============================================ */
.form-section {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 0rem 1.25rem 1.25rem;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

#login-register .form-section {
    background-color: transparent;
    border: none;
    border-radius: 50px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 0.8125rem;
    color: #333;
    font-size: 22px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 0.9375rem;
}

.form-row > .form-group {
    margin-bottom: 0;
}

/* Style grupy formularza */
.form-group {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0.9375rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.3125rem;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-weight: normal;
    box-sizing: border-box;
    transition: border-color 0.3s;
    margin: 0;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    height: 250px;
}

/* Specyficzna reguła dla pola deleteReason */
textarea#deleteReason {
    height: auto;
}

/* Specjalny styl dla inputu z type="text" wewnątrz .password-input-wrapper */
.password-input-wrapper input[type="text"],
.password-input-wrapper input[type="password"],
.password-input-wrapper input[type="text"].mshorter-width-input,
.password-input-wrapper input[type="password"].mshorter-width-input,
.password-input-wrapper input[type="text"].shorter-width-input,
.password-input-wrapper input[type="password"].shorter-width-input {
    width: 100% !important;
    padding-right: 2.0625rem;
}

/* Style dla różnych szerokości pól */
.form-group input[type="text"].shorter-width-input,
.form-group input[type="email"].shorter-width-input,
.form-group input[type="password"].shorter-width-input,
.form-group input[type="number"].shorter-width-input,
.form-group input[type="tel"].shorter-width-input,
.form-group select.shorter-width-input,
.form-group textarea.shorter-width-input {
    width: 35%;
    display: inline-block;
}

.form-group input[type="text"].mshorter-width-input,
.form-group input[type="email"].mshorter-width-input,
.form-group input[type="password"].mshorter-width-input,
.form-group input[type="number"].mshorter-width-input,
.form-group input[type="tel"].mshorter-width-input,
.form-group select.mshorter-width-input,
.form-group textarea.mshorter-width-input {
    width: 50%;
}

 .form-group .phone-input-wrapper.shorter-width-input {
    width: 35%;
    display: inline-flex;
 }

 .form-group .phone-input-wrapper.mshorter-width-input {
    width: 50%;
    display: inline-flex;
 }

.form-group input[type="text"].lshorter-width-input,
.form-group textarea.lshorter-width-input {
    width: 70%;
}

/* Style stanów formularza */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #003153;
    outline: none;
}

.form-group input[type="text"][readonly],
.form-group input[type="email"][readonly] {
    background-color: #f5f5f5;
    cursor: default;
    color: #656565;
    border-color: #ddd;
}

/* Styl dla wierszy formularza w sekcji ofert */
#listings .form-section .form-row:first-child .form-group,
#listings .form-section .form-row:last-child .form-group {
    flex-basis: calc((100% - 20px) / 3);
    /* Uwzględnienie 2 x gap: 10px */
    max-width: calc((100% - 20px) / 3);
    /* Uwzględnienie 2 x gap: 10px */
    margin-bottom: 0rem;
}

/* Style dla selectów */
select.form-control {
    color: rgb(0, 0, 0);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2rem;
}

select.form-control option {
    color: rgb(0, 0, 0);
}

select.form-control option[value=""] {
    display: none;
}

select.form-control option[value=""]:first-child {
    color: #656565;
    display: none;
}

select.form-control:required:invalid {
    color: #656565;
}

/* Wyszarzenie placeholderów w selectach - obsługiwane przez JavaScript */
select.form-control {
    color: #000;
    /* Domyślnie czarny */
}

/* Opcje w selectach */
select.form-control option {
    color: #000;
}

/* Pierwsza opcja (placeholder) - zawsze wyszarzona */
select.form-control option:first-child {
    color: #656565;
}

/* Klasa dla wyszarzonych placeholderów - dodawana przez JavaScript */
select.form-control.placeholder-active {
    color: #656565;
}

select.form-control::-ms-expand {
    display: none;
}

/* Style dla pól z jednostką */
.input-with-unit {
    display: flex;
    align-items: center;
}

.input-with-unit input {
    padding-right: 1.875rem;
}

.currency-ph {
    margin-left: -1.5rem;
    pointer-events: none;
    font-size: 14px;
    color: #656565;
    font-weight: 400;
    text-decoration: none;
}

/* Style dla logowania i rejestracji */
.login-register {
    margin-top: 1.25rem;
}

#loginPassword {
    margin-bottom: -0.9375rem !important;
}

.loginInternal-link {
    margin-top: 0.625rem;
}

.forgottenPassword-link {
    margin-bottom: 0.625rem;
    font-size: 15px;
}

.login-register-toggle {
    cursor: pointer;
}

/* Wspólne styles dla komunikatów */
.success-message,
.error-message {
    width: 100%;
    font-size: 14px;
    text-align: center;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    animation: slideInFade 0.3s ease;
}

.success-message.visible,
.error-message.visible {
    display: block;
}

/* Style dla success message */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

/* Style dla error message */
.error-message {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #f87171;
    display: none;
}

/* Wariant inline error message (bez background, mniejszy) */
.error-message.inline {
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
    text-align: left;
}

/* Specjalne styles dla komunikatów w formularzu */
.form-group .success-message,
.form-group .error-message {
    margin-top: 0.5rem;
    font-size: 0.9em;
    padding: 0.5rem;
}

/* Walidacja inline dla .form-group */
.form-group .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
}

.form-group.error .error-message,
.hm-form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea,
.hm-form-group.error input,
.hm-form-group.error select,
.hm-form-group.error textarea {
    border-color: #e74c3c !important;
}

.form-group.error input:focus,
.form-group.error select:focus,
.form-group.error textarea:focus,
.hm-form-group.error input:focus,
.hm-form-group.error select:focus,
.hm-form-group.error textarea:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* Style dla .error-message w .hm-form-group */
.hm-form-group .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
    background: transparent;
    padding: 0;
    border: none;
    text-align: left;
}

/* Dodatkowa klasa dla pól z błędami */
.error-border {
    border-color: #dc3545 !important;
    border-width: 1px !important;
    outline-color: #dc3545 !important;
}

/* Styl dla komunikatu o niedozwolonych słowach */
.bad-word-error-message {
    color: #dc3545;
    /* Czerwony kolor tekstu */
    font-size: 0.85rem;
    margin-bottom: 0.3125rem;
    /* Odstęp pod komunikatem, nad grupą formularza */
    text-align: left;
    padding: 0.125rem 0;
    display: block;
    /* Upewnia się, że jest blokowy */
}

/* Animacja "shake" */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-2px);
    }

    /* Zmniejszone przesunięcie */
    20%,
    40%,
    60%,
    80% {
        transform: translateX(2px);
    }

    /* Zmniejszone przesunięcie */
}

.shake-animation {
    animation: shake 0.5s ease-in-out;
    /* Wydłużony czas animacji */
}

/* Style dla komunikatów walidacji słów niecenzuralnych */
.field-info {
    margin-top: 0.25rem;
    min-height: 20px;
}

.field-requirement {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin: 0;
    padding: 0;
    transition: color 0.3s ease;
}

.field-requirement.error {
    color: #dc3545 !important;
}

.bad-word-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 0.25rem;
    display: block;
}

/* Specjalne styles dla komunikatów w sekcji weryfikacji */
.verification-content .success-message,
.verification-content .error-message {
    max-width: 400px;
    margin: 1rem auto;
}

/* Styles for email verification */
.verification-content {
    text-align: center;
    padding: 1.25rem;
    max-width: 500px;
    margin: 0 auto;
}

.verification-content p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.verification-content strong {
    color: #003153;
    font-weight: 600;
}

/* Info box - główna definicja */
.info-box {
    background-color: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Wariant dla team.css - z lewym borderem i flex layout */
.info-box.with-icon {
    background: #f8f9fa;
    border-left: 4px solid #003d82;
    display: flex;
    gap: 12px;
    margin: 1.25rem 0;
    border-radius: 4px;
}

.info-box .info-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.info-box .info-content {
    flex: 1;
}

#resendVerificationBtn {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 300px;
    transition: all 0.2s ease;
}

#resendVerificationBtn:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Formularz resetu hasła */
#newPasswordForm {
    max-width: 450px;
    margin: 2.5rem auto;
}

#newPasswordForm .form-group {
    margin-bottom: 1.25rem;
}

#newPasswordForm label {
    display: block;
    margin-bottom: 0.5rem;
}

#newPasswordForm input {
    width: 100%;
}

/* Style dla sekcji resetowania hasła */
.password-requirements ul {
    margin: 0;
    padding-left: 1.25rem;
}

.password-requirements li.valid {
    color: #10b981;
}

.password-requirements li::marker {
    color: #9ca3af;
}

.password-requirements li.valid::marker {
    color: #10b981;
}

/* Style dla formularza resetowania */
#resetPasswordForm,
#forgottenPasswordForm {
    max-width: 400px;
    margin: 0 auto;
}

#resetPasswordForm .form-group,
#forgottenPasswordForm .form-group {
    margin-bottom: 1.5rem;
}

#resetPasswordForm .btn,
#forgottenPasswordForm .btn {
    margin-top: 0.5rem;
}

/* Style dla wrappera hasła */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

/* Settings Tab Content */
.settings-tab {
    padding-bottom: 0.9375rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.settings-form .password-input-wrapper {
    width: 35%;
    /* Taka sama szerokość jak shorter-width-input */
    display: inline-block;
}

 .settings-form .phone-input-wrapper.shorter-width-input {
    width: 35%;
    display: inline-flex;
 }

 .settings-form .phone-input-wrapper.mshorter-width-input {
    width: 35%;
    display: inline-flex;
 }

.settings-form .password-input-wrapper input[type="password"] {
    width: 100%;
    /* Input wypełnia wrapper */
}

.settings-form .form-actions {
    margin-top: 1.5rem;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    cursor: pointer;
    line-height: 0;
    /* Resetuje linię */
    color: #656565;
    z-index: 1;
    /* Zapewnia, że przycisk jest zawsze nad inputem */
}

/* Poprawiony styl dla ikon */
.password-toggle-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    /* Usuwa dodatkową przestrzeń */
}

/* Efekt hover */
.password-toggle-btn:hover {
    color: #333;
}

/* Styl dla przekreślonej ikony */
.eye-off-icon {
    stroke-width: 1.5px;
    /* Cieńsza linia */
}

.eye-off-icon line {
    stroke-width: 2px;
    /* Grubsza linia dla przekreślenia */
}

.hidden {
    display: none;
}

.password-requirements {
    display: none;
}

.password-requirements.visible {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.password-requirements li.met {
    color: #10b981;
    transition: color 0.3s ease;
}

input[type="password"].valid {
    border-color: #10b981;
}

input[type="password"].invalid {
    border-color: #dc2626;
}

/* Link do powrotu */
.return-to-login {
    display: block;
    text-align: center;
    margin-top: 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.return-to-login:hover {
    color: #0B4A73;
    text-decoration: underline;
}

/* Komunikaty o stanie */
.reset-status {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reset-status.success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.reset-status.error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #dc2626;
}

.reset-status svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Style dla tooltipów z wymaganiami hasła */
.password-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    cursor: help;
}

.password-tooltip:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    background-color: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.password-tooltip:hover::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1f2937;
}

/* Formularz */
.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

/* .error-message - główna definicja wyżej (linia 823), użyj .error-message.inline dla prostego stylu */

/* Password input */
.password-input-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
}

.password-requirements {
    margin-top: 0.9375rem;
    display: none;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.password-requirements p {
    margin: 0 0 0.5rem 0;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 0.25rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.password-requirements li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: currentColor;
}

.password-requirements li.met {
    color: #10b981;
}

.password-requirements li.unmet {
    color: #dc2626;
}

/* Billing type selector */
.billing-type-selector {
    margin-bottom: 2rem;
}

.radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    margin: 0;
    flex-shrink: 0;
}

.radio-label span {
    line-height: 1;
    position: relative;
    top: 0;
    /* Można dostosować tę wartość, np. -1px jeśli tekst nadal jest za wysoko */
}

.discount-section {
    padding: 0 1.25rem 4.0938rem 1.25rem;
}

.discount-section.discount-section--service-multiline {
    padding-bottom: 2.0938rem;
}

.discount-section h4 {
    margin: 0;
}

.discount-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    user-select: none;
    color: #003153;
}

.discount-toggle:focus-visible {
    outline: 2px solid #003d82;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.25);
    border-radius: 6px;
}

.discount-toggle-label {
    flex: 1;
    margin-bottom: 0.3125rem;
}

.discount-toggle-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #0B4A73;
    transition: transform 0.3s ease;
}

.discount-section.active .discount-toggle-icon {
    transform: rotate(180deg);
}

.discount-content {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    transition: max-height 0.35s ease, padding-top 0.35s ease;
}

.discount-input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.discount-input-group input[type="text"] {
    width: auto;
    flex: 1 1 auto;
    box-sizing: border-box;
    min-width: 0;
    padding: 0.625rem;
}

.discount-input-group input {
    flex: 1 1 auto;
    min-width: 0;
}

.discount-input-group .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.message-box {
    margin-bottom: 0.5rem;
    border-radius: 4px;
    word-wrap: break-word;
    /* Zapewnia zawijanie długich słów */
    overflow-wrap: break-word;
    /* Nowsza wersja word-wrap */
}

#discountMessage:empty {
    display: none;
}

.message-box.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #22c55e;
    padding: 0.375rem 0.75rem;
}

.message-box.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    padding: 0.375rem 0.75rem;
}

.message-box.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fbbf24;
    padding: 0.25rem 0.5rem;
    margin-bottom: 1rem;
}

.message-box.info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #0ea5e9;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
}

/* Specyficzne style dla discountMessage */
#discountMessage.success,
#discountMessage.error,
#discountMessage.warning {
    padding: 0rem 0.75rem;
}

/* Price summary */
.price-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 0rem 1.5rem;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.price-row.discount {
    color: #F39C12;
}

.price-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
    font-weight: 600;
}

.base-price,
.total-price {
    white-space: nowrap;
}

/* Form footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
}

/* Confirmation page */
.confirmation-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 2rem;
}

.confirmation-content {
    text-align: center;
    max-width: 500px;
}

.confirmation-icon {
    margin-bottom: 1.5rem;
}

.confirmation-message {
    color: #4b5563;
    margin: 1rem 0 2rem;
    line-height: 1.6;
}

.confirmation-actions {
    margin-top: 2rem;
}

/* Style dla sekcji płatności */
.payment-columns {
    display: flex;
    flex-wrap: wrap;
}

.payment-column-left {
    width: 60%;
    padding-right: 1.25rem;
    box-sizing: border-box;
    min-width: 0;
}

.payment-column-right {
    width: 40%;
    box-sizing: border-box;
    margin-top: auto;
    margin-bottom: 1rem;
    align-self: flex-end;
    min-width: 0;
}

.payment-summary-box {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.payment-actions {
    margin-top: 0rem;
    /* Zerujemy margin dziedziczony z .form-footer */
    clear: both;
}

/* Przesunięcie głównego przycisku akcji do prawej krawędzi */
.payment-actions #payButton {
    margin-left: auto;
}

/* Specyficzne style tylko dla przycisków payButton i accessBackBtn */
#payButton,
#accessBackBtn {
    padding: 0.75rem 1.5rem;
}

.form-section.payment-summary-box {
    padding: 0.375rem 0.625rem;
}

/* Style dla wyszarzonych pól formularza przy cenie 0 zł */
.zero-price-disabled {
    background-color: #f0f0f0 !important;
    border-color: #ddd !important;
    color: #999 !important;
    cursor: not-allowed !important;
}

/* Style dla informacji o braku konieczności podawania danych - rozszerzenie głównego .info-box */
.info-box.success-box {
    background-color: rgba(16, 185, 129, 0.1);
    border: none;
    border-left: 4px solid #10b981;
    padding: 0.625rem 0.9375rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    color: #10b981;
}

.info-box.success-box p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   FORMULARZ KONTAKTOWY
   ======================================== */

.contact-section {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.contact-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #003153;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-section .subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Contact-specific phone input (rozszerza istniejący .phone-input-wrapper) */
.contact-form .phone-input-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    overflow: hidden;
}

.contact-form .phone-input-wrapper:focus-within {
    border-color: #0B4A73;
    box-shadow: 0 0 0 3px rgba(11, 74, 115, 0.1);
}

.contact-form .phone-prefix {
    background: #f8f9fa;
    padding: 0 0.875rem;
    font-weight: 600;
    color: #003153;
    border-right: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.contact-form .phone-input-wrapper input[type="tel"] {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 0.875rem;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
    box-sizing: border-box;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    height: 34px;
    margin: 0 !important;
}

.contact-form .phone-input-wrapper input[type="tel"]:focus {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Formularz kontaktowy */
.contact-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Contact form fields */
.form-field {
    display: flex;
    flex-direction: column;
}

.contact-form .form-row > .form-field {
    width: 100%;
    min-width: 0;
}

.form-field label {
    font-weight: 600;
    color: #003153;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-field label .optional-badge {
    font-size: 0.75rem;
    font-weight: 400;
    color: #999;
    background: #f5f5f5;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.form-field > input,
.form-field > select,
.form-field > textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: #fff;
}

.form-field > input,
.form-field > select {
    height: 38px;
    line-height: 34px;
}

.form-field textarea {
    padding: 0.65rem 1rem;
    min-height: 150px;
    resize: vertical;
}

.form-field > input:focus,
.form-field > select:focus,
.form-field > textarea:focus {
    outline: none;
    border-color: #0B4A73;
    box-shadow: 0 0 0 3px rgba(11, 74, 115, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #999;
}

.form-field select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23003153' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Helper text */
.form-field .help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.35rem;
}

/* Error state */
.form-field.error > input,
.form-field.error > select,
.form-field.error > textarea {
    border-color: #e74c3c;
}

/* Error state dla phone wrapper */
.form-field.error .phone-input-wrapper {
    border-color: #e74c3c;
}

.form-field .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.35rem;
    display: none;
}

.form-field.error .error-message {
    display: block;
}

/* Privacy consent checkbox dla formularza kontaktowego */
.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.privacy-consent input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.privacy-consent label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}

.privacy-consent label a {
    color: #0B4A73;
    text-decoration: underline;
}

.privacy-consent label a:hover {
    color: #003153;
}

.privacy-consent.error {
    border: 2px solid #e74c3c;
    background: #fee;
}

/* Submit button dla kontaktu */
.form-submit-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.submit-btn {
    width: auto;
    padding: 0.65rem 2rem;
    background: #F39C12;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
}

.submit-btn:hover:not(:disabled) {
    background: #e08c0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Form messages dla kontaktu */
.form-message {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border-radius: 14px;
    margin: 0 0 1rem;
    font-size: 0.975rem;
    text-align: left;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    border: 1px solid transparent;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 240px;
}

.form-message-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-message-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.form-message-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.form-message-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.form-message-description {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: inherit;
}

.form-message.success {
    background: linear-gradient(135deg, #f2fbf5 0%, #e8f7ee 100%);
    border-color: #b7e4c7;
    color: #14532d;
}

.form-message.success .form-message-icon {
    background: #dcfce7;
    color: #15803d;
}

.form-message.error {
    background: linear-gradient(135deg, #fff5f5 0%, #fdecec 100%);
    border-color: #f5c2c7;
    color: #7f1d1d;
}

.form-message.error .form-message-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Google reCAPTCHA badge */
.grecaptcha-badge {
    z-index: 9999;
}

/* ========================================
   Team Management Section (User Settings)
   ======================================== */
.team-info-section {
    padding: 1rem 0;
}

.team-info-section .info-box {
    text-align: center;
    padding: 2rem;
}

.team-info-section .info-box svg {
    color: #003153;
    margin-bottom: 1.5rem;
}

.team-info-section .info-box h3 {
    font-size: 1.5rem;
    color: #213445;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-info-section .info-box p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.team-features {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.team-features .feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.team-features .feature-item svg {
    flex-shrink: 0;
    color: #27ae60;
}

.team-features .feature-item span {
    color: #213445;
    font-size: 0.95rem;
}

.team-actions {
    margin-top: 2rem;
}

.team-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.team-actions .btn svg {
    width: 20px;
    height: 20px;
}

.info-text {
    color: #6c757d;
    line-height: 1.8;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.info-text strong {
    color: #213445;
    font-weight: 600;
}

.service-consent {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #003153;
    border-radius: 8px;
    padding: 0.9375rem;
    margin: 0.9375rem 0;
    transition: box-shadow 0.2s ease;
}

.service-consent:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.service-consent__label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.service-consent__checkbox {
    flex: 0 0 auto;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin: 4px 0 0;
    accent-color: #003153;
}

.service-consent__content {
    min-width: 0;
}

.service-consent__title {
    display: inline-block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.service-consent__text {
    display: block;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

.service-consent__link {
    color: #003153;
    text-decoration: underline;
}

.service-consent__link:hover {
    color: #0B4A73;
}

/* ============================================
   ZGODY RODO - SETTINGS
   ============================================ */

.consent-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.consent-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.consent-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.consent-info {
    flex: 1;
}

.consent-info h4 {
    margin: 0 0 0.5rem 0;
    color: #213445;
    font-size: 1rem;
    font-weight: 600;
}

.consent-info p {
    margin: 0 0 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.consent-meta {
    margin-top: 0.5rem;
}

.consent-date {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* Listing consents */
.listing-consents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.listing-consent-item {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.listing-info h4 {
    margin: 0 0 0.5rem 0;
    color: #213445;
    font-size: 1.1rem;
}

.listing-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.listing-date {
    font-size: 0.9rem;
    color: #666;
}

.listing-status {
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 500;
}

.listing-status.status-active {
    background: #d4edda;
    color: #155724;
}

.listing-status.status-deleted {
    background: #f8d7da;
    color: #721c24;
}

.consent-details {
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
}

.consent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.consent-label {
    color: #666;
    font-size: 0.9rem;
}

.consent-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.consent-value.granted {
    color: #28a745;
}

.consent-value.revoked {
    color: #dc3545;
}

.revoke-cv-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Alert info box */
.alert-info {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    margin-top: 1rem;
}

.alert-info svg {
    grid-row: 1 / -1;
    color: #0066cc;
    overflow: visible;
    height: 1.4em;
    width: 20px;
}

.alert-info > div {
    display: flex;
    flex-direction: column;
}

.alert-info strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #213445;
    line-height: 1.4;
}

.alert-info p {
    margin: 0 0 0.5rem 0;
    color: #213445;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-info p:last-child {
    margin-bottom: 0;
}

.alert-info a {
    color: #0066cc;
    text-decoration: underline;
}

.alert-info a:hover {
    color: #003d82;
}

/* Consent history */
.consent-history-toggle {
    margin-bottom: 1rem;
}

.consent-history-toggle button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.consent-history-toggle button svg {
    flex-shrink: 0;
}

.consent-history-table {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.consent-history-table table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
}

.consent-history-table th,
.consent-history-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.consent-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #213445;
}

.consent-history-table tbody tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-badge.granted {
    background: #d4edda;
    color: #155724;
}

.status-badge.revoked {
    background: #f8d7da;
    color: #721c24;
}

.empty-state,
.error-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.error-state {
    color: #dc3545;
}

/* ========================================
   Zapisane wyszukiwania - Steps List
   ======================================== */
.how-to-add {
    margin-top: 1rem;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    counter-reset: step-counter;
}

.steps-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.25rem;
    counter-increment: step-counter;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: #003153;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.steps-list li strong {
    display: block;
    color: #213445;
    margin-bottom: 0.25rem;
}

.steps-list li p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.steps-list li a {
    color: #0B4A73;
    text-decoration: none;
}

.steps-list li a:hover {
    text-decoration: underline;
}

.cta-box {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.cta-box .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.searches-intro {
    padding: 0.5rem 0;
}

.searches-intro .badge-pro {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* ========================================
   Settings Card - bazowe style
   ======================================== */
.settings-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.settings-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #213445;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-card h3 svg {
    flex-shrink: 0;
}

.settings-card.settings-card--collapsible {
    padding: 0;
    overflow: hidden;
    border: 1px solid #e7eef5;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.settings-card.settings-card--collapsible:hover {
    border-color: #d6e4f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.settings-card.settings-card--collapsible.is-expanded {
    border-color: rgba(11, 74, 115, 0.24);
    box-shadow: 0 18px 38px rgba(11, 74, 115, 0.10);
    transform: translateY(-1px);
}

.settings-card.settings-card--collapsible.danger {
    border-color: rgba(185, 28, 28, 0.12);
    box-shadow: 0 8px 24px rgba(127, 29, 29, 0.05);
}

.settings-card.settings-card--collapsible.danger:hover {
    border-color: rgba(220, 38, 38, 0.20);
    box-shadow: 0 14px 32px rgba(127, 29, 29, 0.08);
}

.settings-card.settings-card--collapsible.danger.is-expanded {
    border-color: rgba(220, 38, 38, 0.26);
    box-shadow: 0 18px 38px rgba(127, 29, 29, 0.12);
}

.settings-card-toggle {
    width: 100%;
    padding: 1rem;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    text-align: left;
    color: #213445;
    font: inherit;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.settings-card-toggle:hover {
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbfe 100%);
}

.settings-card-toggle:focus-visible {
    outline: 2px solid #0B4A73;
    outline-offset: -2px;
}

.settings-card--collapsible.is-expanded .settings-card-toggle {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
}

.settings-card--collapsible.danger .settings-card-toggle {
    background: linear-gradient(180deg, #fffdfd 0%, #fff9f9 100%);
}

.settings-card--collapsible.danger .settings-card-toggle:hover {
    background: linear-gradient(180deg, #fffdfd 0%, #fff4f4 100%);
}

.settings-card--collapsible.danger.is-expanded .settings-card-toggle {
    background: linear-gradient(180deg, #fffafa 0%, #fff2f2 100%);
}

.settings-card-toggle-title {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.settings-card--collapsible.danger .settings-card-toggle-title {
    color: #7f1d1d;
}

.settings-card-toggle-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #0B4A73;
    transition: transform 0.3s ease, color 0.25s ease;
}

.settings-card--collapsible.danger .settings-card-toggle-icon {
    color: #b42318;
}

.settings-card--collapsible.is-expanded .settings-card-toggle-icon {
    transform: rotate(180deg);
}

.settings-card-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.34s ease, opacity 0.22s ease, transform 0.28s ease;
}

.settings-card--collapsible.is-expanded .settings-card-content {
    border-top: 1px solid #e5e7eb;
    opacity: 1;
    transform: translateY(0);
}

.settings-card--collapsible.danger.is-expanded .settings-card-content {
    border-top-color: rgba(220, 38, 38, 0.12);
}

.settings-card-content > * {
    padding: 1.25rem 1.5rem 1.5rem;
}

.settings-header {
    margin-bottom: 1rem;
}

.settings-header h2 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #213445;
}

.settings-header h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #213445;
}

.settings-header p {
    margin: 0;
    color: #6c757d;
    font-size: 0.95rem;
}

.notification-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

/* Notification items - bazowe style */
.notification-item {
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
    width: 100%;
    box-sizing: border-box;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-info {
    flex: 1;
    min-width: 0;
}

.notification-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #213445;
}

.notification-info h4 .badge-pro {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    color: #fff;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 0.125rem;
    vertical-align: middle;
}

.notification-info p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
}

/* ========================================
   MFA settings (logowanie dwuskładnikowe)
   — bazowe style, responsywność w istniejących @media niżej
   ======================================== */
.mfa-status-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin: 0.5rem 0 1rem;
}

.mfa-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 0 1 auto;
}

.mfa-status-info strong {
    font-size: 1rem;
    color: #213445;
    font-weight: 600;
}

.mfa-status-info .info-text {
    margin: 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.mfa-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 0.5rem 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.mfa-warning a {
    color: #856404;
    text-decoration: underline;
    font-weight: 600;
}

.mfa-disable-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    max-width: 480px;
}

.mfa-disable-form .form-group {
    margin-bottom: 1rem;
}

.mfa-disable-form .password-input-wrapper {
    width: 100% !important;
    display: block;
}

.mfa-disable-form .form-actions {
    display: flex;
    gap: 2.5rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================
   Karty planów dostępu (zakładka Dostęp)
   ======================================== */
.access-plans .plans-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.access-plans .plan-group {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.access-plans .plan-group.recommended {
    border-color: #F39C12;
    background: #fffbf5;
}

.access-plans .recommended-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #F39C12;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.access-plans .plan-group-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #213445;
    margin: 0.5rem 0;
    text-align: center;
    display: block;
}

.access-plans .plan-features-list {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin: 0 0 1.5rem 0;
}

.access-plans .plan-features-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.access-plans .plan-features-list li {
    color: #213445;
    font-size: 0.875rem;
    line-height: 1.8;
    padding: 0.25rem 0;
}

.access-plans .plan-features-list li.feature-available {
    color: #213445;
}

.access-plans .plan-features-list li.feature-unavailable {
    color: #9ca3af;
}

.access-plans .plan-features-list li .feature-icon {
    margin-right: 0.5rem;
    font-weight: bold;
}

.access-plans .plan-features-list li.feature-available .feature-icon {
    color: #27ae60;
}

.access-plans .plan-features-list li.feature-unavailable .feature-icon {
    color: #ef4444;
}

.access-plans .plan-periods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.access-plans .plan-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.access-plans .plan-card:hover {
    border-color: #003153;
    box-shadow: 0 2px 8px rgba(0, 49, 83, 0.1);
}

.access-plans .plan-period {
    font-weight: 600;
    color: #213445;
    font-size: 0.95rem;
}

.access-plans .plan-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #003153;
}

.access-plans .plan-price-per-day {
    font-size: 0.75rem;
    color: #656565;
    text-align: right;
}

/* Link "Jak działa dostęp rekruterski?" - używaj globalnej klasy .info-link z main.css */

/* ========================================
   Faktury - Filtry inline
   ======================================== */
.invoices-filters-row {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.invoices-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.invoices-filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: #5a6c7d;
}

.invoices-filter-group input[type="date"] {
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d9e0;
    border-radius: 4px;
    font-size: 15px;
    color: #213445;
    background: #fff;
    min-width: 0;
    width: 170px;
    max-width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.invoices-filter-group input[type="date"]:focus {
    outline: none;
    border-color: #003153;
    box-shadow: 0 0 0 3px rgba(0, 49, 83, 0.1);
}

.invoices-filter-actions {
    display: flex;
    gap: 12px;
}

.referral-link-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 1rem;
}

.referral-link-row input {
    flex: 1;
    min-width: 0;
    max-width: 75%;
}

.referral-link-row .referral-copy-wrapper {
    flex-shrink: 0;
    display: flex;
}

.referral-link-meta {
    margin-top: 0.625rem;
    font-size: 13px;
    color: #656565;
}

.referral-link-row input[readonly] {
    caret-color: #003153;
    cursor: text;
}

.referral-link-row .btn-icon {
    padding: 0.5rem 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #003153;
    border: 1px solid #003153;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
}

.referral-link-row .btn-icon:hover {
    background-color: #0B4A73;
    border-color: #0B4A73;
}

.referral-link-row .btn-icon.copied {
    background: #fff;
    border-color: #003153;
    color: #003153;
}

.referral-link-row .btn-icon svg {
    width: 18px;
    height: 18px;
}

.referral-copy-wrapper {
    position: relative;
}

.referral-copy-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #003153;
    color: #fff;
    font-size: 12px;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.referral-copy-tooltip.visible {
    opacity: 1;
}

.referral-copy-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: #003153;
}

/* ========================================
   Access Dashboard - Sekcja Dostępu (ustawienia/dostep)
   ======================================== */

.access-dashboard {
    display: flex;
    flex-direction: column;
}

.access-status-hero {
    background: linear-gradient(135deg, #003153 0%, #00263f 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    color: white;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0, 49, 83, 0.25);
}

.status-hero-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-hero-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-hero-icon svg {
    color: #4ade80;
}

.status-hero-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0 4px 0;
    color: white;
}

.status-hero-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.status-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.status-hero-meta {
    display: flex;
    gap: 24px;
}

.status-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    min-width: 120px;
    border-bottom: none !important;
}

.status-hero-meta .meta-item svg {
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.status-hero-meta .meta-item.highlight {
    background: rgba(74, 222, 128, 0.2);
}

.status-hero-meta .meta-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.125rem;
}

.status-hero-meta .meta-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    padding-left: 0 !important;
    text-align: center;
}

.status-hero-meta .meta-item > div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.status-hero-meta .meta-value.days {
    color: #4ade80;
    font-size: 1.1rem;
}

.status-hero-meta .meta-value.days::after {
    content: ' dni';
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
}

.status-hero-meta .meta-item svg {
    flex-shrink: 0;
}

.pending-upgrade-info {
    width: 100%;
    margin-bottom: 0.5rem;
}

.pending-upgrade-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: #fff;
    border: 2px solid #c7d7f5;
    padding: 0.75rem 1.125rem;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
    box-sizing: border-box;
}

.pending-upgrade-badge svg {
    flex-shrink: 0;
    color: #3b82f6;
}

.pending-upgrade-badge strong {
    color: #1e3a5f;
    font-weight: 700;
}

.access-actions-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 1.25rem 0 20px 0;
}

.access-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.access-action-btn.primary {
    background: #003153;
    color: white;
}

.access-action-btn.primary:hover {
    background: #0B4A73;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 49, 83, 0.3);
}

.access-action-btn.secondary {
    background: #f4f7f6;
    color: #003153;
    border: 1px solid #e2e8f0;
}

.access-action-btn.secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

/* Statystyki użycia */
.access-stats-section,
.access-history-section,
.referral-section,
.team-invitations-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.team-invitations-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.access-stats-section .section-header,
.access-history-section .section-header,
.referral-section .section-header,
.team-invitations-section .section-header {
    margin: 0 0 20px 0;
}

.access-stats-section .section-header h3,
.referral-section .section-header h3,
.access-history-section .section-header h3,
.team-invitations-section .section-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #003153;
    margin: 0;
}

.access-stats-section .section-header h3 svg,
.access-history-section .section-header h3 svg,
.referral-section .section-header h3 svg,
.team-invitations-section .section-header h3 svg{
    color: #0B4A73;
}

#teamInvitationsList {
    background: transparent;
    border: none;
    padding: 0;
}

#teamInviteSendBtn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#teamInvitationsManageSection #teamInviteEmail {
    width: 50%;
    max-width: 360px;
    min-width: 220px;
}

#teamInvitationsManageSection #teamInviteSendBtn {
    margin: 0 auto;
}

.access-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.access-stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.access-stat-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.access-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.access-stat-card .stat-icon.views {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #2563eb;
}

.access-stat-card .stat-icon.downloads {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
}

.access-stat-card .stat-icon.saved {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
}

.access-stat-card .stat-icon.searches {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
    color: #9333ea;
}

.access-stat-card .stat-content {
    flex: 1;
    min-width: 0;
}

.access-stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #003153;
    line-height: 1.2;
}

.access-stat-card .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.125rem;
}

/* Historia płatności - Timeline */
.payment-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-timeline-item {
    display: flex;
    gap: 16px;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.payment-timeline-item:last-child {
    border-bottom: none;
}

.payment-timeline-item::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 32px;
    bottom: -16px;
    width: 2px;
    background: #e2e8f0;
}

.payment-timeline-item:last-child::before {
    display: none;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    margin-top: 0.25rem;
    position: relative;
    z-index: 1;
}

.timeline-dot.pending {
    background: #f59e0b;
}

.timeline-dot.failed {
    background: #ef4444;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #003153;
    margin-bottom: 0.25rem;
}

.timeline-plan {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 0.125rem;
}

.timeline-purchased {
    font-size: 0.78rem;
    color: #94a3b8;
    margin-bottom: 0.125rem;
}

.timeline-method {
    font-size: 0.8rem;
    color: #64748b;
}

.timeline-amount {
    text-align: right;
    flex-shrink: 0;
}

.timeline-price {
    font-size: 1rem;
    font-weight: 700;
    color: #003153;
}

.timeline-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.1875rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.timeline-status.paid {
    background: #dcfce7;
    color: #16a34a;
}

.timeline-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.timeline-status.free {
    background: #dbeafe;
    color: #2563eb;
}

.timeline-loading,
.timeline-empty {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line.short {
    width: 60%;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Selektor okresu statystyk */
.stats-period-selector {
    display: inline-flex;
    gap: 4px;
    background: #f0f2f5;
    border-radius: 8px;
    padding: 0.1875rem;
}

.stats-period-selector .period-btn {
    padding: 0.3125rem 0.875rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.stats-period-selector .period-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.stats-period-selector .period-btn.active {
    background: #003153;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 49, 83, 0.2);
}

.access-stats-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 1200px) {

    .form-group input[type="text"].lshorter-width-input,
    .form-group textarea.lshorter-width-input {
        width: 100%;
    }

    .field-info {
        width: 100%;
    }

    #resetPasswordForm,
    #forgottenPasswordForm {
        max-width: 100%;
        padding: 0 20px;
    }

    .payment-column-left {
        padding-right: 0.9375rem;
    }

    /* Faktury - responsywność 1200px */
    .invoices-filters-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .invoices-filter-group {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .invoices-filter-group input[type="date"] {
        width: 100%;
        min-width: unset;
    }

    .invoices-filter-actions {
        flex: 1 1 auto;
    }

    /* Tabela faktur - responsywność 1200px */
    .consent-history-table {
        width: 100%;
        overflow-x: auto;
    }

    .consent-history-table table {
        min-width: 100%;
    }

    .consent-history-table th,
    .consent-history-table td {
        padding: 0.6rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Status hero meta - responsywność 1200px */
    .status-hero-meta {
        gap: 12px;
        padding: 0.5rem 0;
    }

    .status-hero-meta .meta-item {
        padding: 0.375rem 0.625rem;
        font-size: 0.85rem;
    }

    /* Form messages - responsywność 1200px */
    .form-message {
        max-width: 600px;
    }
}

@media (max-width: 992px) {
    .form-group {
        width: 100%;
        max-width: none;
    }

    /* Formularze w ustawieniach - responsywność 992px */
    #accountForm,
    .settings-form {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #accountForm .form-row {
        flex-direction: column;
        gap: 15px;
    }

    #accountForm .form-group {
        width: 100%;
        max-width: 100%;
    }

    /* Settings card danger - responsywność 992px */
    .settings-card.danger {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .danger-section {
        width: 100%;
        max-width: 100%;
    }

    .danger-warning {
        width: 100%;
        box-sizing: border-box;
    }

    /* Notification items - responsywność 992px */
    .notification-group {
        width: 100%;
        max-width: 100%;
    }

    .notification-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .notification-info {
        flex: 1;
        min-width: 0;
    }

    .notification-info h4 {
        font-size: 0.95rem;
        word-wrap: break-word;
    }

    .notification-info p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }

    /* Consent items - responsywność 992px */
    .consent-item,
    .listing-consent-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Consent history - responsywność 992px */
    #consentHistoryContainer,
    .consent-history-list {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
    }

    /* Form messages - responsywność 992px */
    .form-message {
        max-width: 500px;
    }

    /* Faktury - responsywność 992px */
    .invoices-filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .invoices-filter-group {
        width: 100%;
    }

    .invoices-filter-actions {
        width: 100%;
        display: flex;
        gap: 12px;
    }

    .invoices-filter-actions .btn {
        flex: 1;
    }

    /* Tabela faktur - responsywność 992px */
    .consent-history-table th,
    .consent-history-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Status hero meta - responsywność 992px */
    .status-hero-meta {
        flex-wrap: wrap;
        padding: 0.375rem 0;
    }

    .status-hero-meta .meta-item {
        padding: 0.3125rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Searches intro - responsywność 992px */
    .searches-intro {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .searches-intro .info-text {
        word-wrap: break-word;
    }

    /* Criteria items - responsywność 992px */
    .criteria-item {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Alert boxes - responsywność 992px */
    .alert,
    .alert-info,
    .alert-warning {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Info text - responsywność 992px */
    .info-text {
        width: 100%;
        max-width: 100%;
        word-wrap: break-word;
    }

    /* Plans intro - responsywność 992px */
    .plans-intro {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Team Management - responsywność 992px */
    .team-info-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .team-info-section .info-box {
        padding: 1.75rem;
    }

    .team-features {
        width: 100%;
        max-width: 100%;
    }

    .team-actions {
        width: 100%;
    }

    /* Access sections - responsywność 992px */
    .access-stats-section,
    .access-history-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Access Dashboard - Responsywność */
    .access-status-hero {
        flex-direction: column;
        align-items: stretch;
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .pending-upgrade-badge {
        font-size: 0.8rem;
        padding: 0.625rem 0.875rem;
        gap: 8px;
    }

    .status-hero-meta {
        width: 100%;
        justify-content: stretch;
    }

    .status-hero-meta .meta-item {
        flex: 1;
        min-width: 0;
    }

    .access-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Poprawiam responsywność pól haseł, ale zachowuję krótszą szerokość - dla całej strony */
    .form-group input.shorter-width-input,
    .form-group select.shorter-width-input,
    .form-group textarea.shorter-width-input,
    .password-input-wrapper,
    .phone-input-wrapper.shorter-width-input {
        width: 55% !important;
        /* Zwiększam nieco szerokość, ale nie do 100% */
    }

    /* Specjalne reguły dla formularzy logowania, rejestracji i odzyskiwania hasła - wszystkie pola na 100% szerokości */
    #login .form-group input,
    #login .form-group select,
    #login .form-group textarea,
    #login .password-input-wrapper,
    #forgottenPassword .form-group input,
    #forgottenPassword .form-group select,
    #forgottenPassword .form-group textarea,
    #forgottenPassword .password-input-wrapper,
    #login-register .form-group input.shorter-width-input,
    #login-register .password-input-wrapper,
    #login-register .form-group input[type="password"] {
        width: 100% !important;
    }

    .form-group input.mshorter-width-input,
    .form-group select.mshorter-width-input,
    .form-group textarea.mshorter-width-input,
    .phone-input-wrapper.mshorter-width-input {
        width: 65% !important;
        /* Zwiększam nieco szerokość, ale nie do 100% */
    }

    .form-group label {
        font-size: 15px;
    }

    .dropdown-content {
        width: 100%;
        left: 0;
        transform: none;
    }

    /* Usunięcie zbędnego marginesu z 992px media query */
    #login-register .form-section {
        margin: 0 4px;
        /* Zmniejszone z 0 20px na 0 4px */
    }

    #listings .form-section .form-row:first-child .form-group,
    #listings .form-section .form-row:last-child .form-group {
        flex-basis: 100%;
        max-width: 100%;
        margin-top: 0.625rem;
    }

    #listings .form-section .form-row:last-child {
        gap: 0;
        /* Usunięcie odstępu dla ostatniego wiersza w #listings */
    }

    .password-requirements {
        padding: 0.75rem;
    }

    #resetPasswordForm .form-group,
    #forgottenPasswordForm .form-group {
        margin-bottom: 1.25rem;
    }

    #payment-header h2 {
        font-size: 1.4em;
        /* Mniejsza czcionka dla nagłówka */
    }

    .payment-columns {
        flex-direction: column;
    }

    .payment-column-left,
    .payment-column-right {
        width: 100%;
        padding-right: 0;
    }

    .payment-column-right {
        margin-top: 1.25rem;
        align-self: auto;
    }

    .discount-input-group {
        width: 100%;
    }

    .discount-input-group input {
        min-width: 0;
        /* Pozwala na zmniejszenie poniżej domyślnej szerokości */
    }

    .discount-input-group .btn {
        white-space: nowrap;
        /* Zapobiega zawijaniu tekstu przycisku */
        flex-shrink: 0;
        /* Zapobiega zmniejszaniu przycisku */
    }

    /* Responsywność dla payment-column-right */
    .discount-section {
        padding: 0rem 1rem 1rem 1rem;
    }

    .discount-section.discount-section--service-multiline {
        padding-bottom: 1rem;
    }

    .discount-section h4 {
        margin-bottom: 0;
    }

    .message-box {
        padding: 0.625rem 0.875rem;
        font-size: 14px;
    }

    /* Responsywność dla ogólnych komunikatów @992px */
    .message-box.success,
    .message-box.error,
    .message-box.warning {
        padding: 0.25rem 0.5rem;
    }

    /* Responsywność dla discountMessage @992px */
    #discountMessage.success,
    #discountMessage.error,
    #discountMessage.warning {
        padding: 0rem 0.75rem;
        font-size: 14px;
    }

    .price-summary {
        padding: 1.25rem 1.25rem 0rem 1.25rem;
    }

    .price-details {
        gap: 0.65rem;
    }

    .payment-actions {
        display: flex;
        justify-content: space-between;
        gap: 15px;
    }

    /* Responsywność dla payButton i accessBackBtn @992px */
    #payButton,
    #accessBackBtn {
        padding: 0.625rem 1.25rem;
    }

    /* Poprawienie responsywności pól formularza na mniejszych ekranach */
    .settings-form .form-group input[type="password"],
    .settings-form .form-group input[type="text"],
    .settings-form .password-input-wrapper,
    .settings-form .phone-input-wrapper {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-section {
        padding: 0.9375rem;
    }

    .referral-link-row {
        flex-direction: row;
    }

    .referral-link-row .btn-icon {
        flex-shrink: 0;
    }

    .form-message {
        width: 100%;
        max-width: 100%;
    }

    /* Access Dashboard - Responsywność */
    .status-hero-content {
        flex-direction: column;
        text-align: center;
    }

    .status-hero-icon {
        width: 56px;
        height: 56px;
    }

    .status-hero-text h3 {
        font-size: 1.25rem;
    }

    .status-hero-meta {
        flex-direction: column;
        padding: 0.25rem 0;
    }

    .status-hero-meta .meta-item {
        justify-content: center;
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }

    .access-actions-bar {
        flex-direction: column;
        margin: 0.9375rem 0 15px 0;
    }

    .access-action-btn {
        justify-content: center;
    }

    .access-stat-card {
        padding: 1rem;
    }

    .access-stat-card .stat-icon {
        width: 40px;
        height: 40px;
    }

    .access-stat-card .stat-number {
        font-size: 1.5rem;
    }

    .form-group label {
        margin-bottom: 0.5rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
        font-size: 15px;
    }

    .dropdown-content {
        position: relative;
        max-width: none;
    }

    .form-border {
        padding: 0.9375rem;
    }

    .btn {
        padding: 0.625rem;
        font-size: 15px;
    }

    .btn-add-listing {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }

    .verification-content {
        padding: 1rem;
        margin: 0 16px;
    }

    .info-box {
        padding: 0.75rem;
        margin: 1.25rem 0;
        font-size: 14px;
    }

    #resendVerificationBtn {
        max-width: 100%;
    }

    #newPasswordForm {
        max-width: 100%;
        margin: 1.25rem 1rem;
    }

    .password-requirements p {
        font-size: 14px;
    }

    .password-requirements li {
        font-size: 14px;
    }

    .reset-status {
        font-size: 14px;
        padding: 0.625rem;
    }

    .return-to-login {
        font-size: 14px;
    }

    .form-row {
        flex-direction: column;
        gap: 0.9375rem;
    }

    #payment-header h2 {
        font-size: 1.3em;
    }

    .payment-columns {
        gap: 15px;
    }

    .payment-summary-box {
        margin-top: 0.625rem;
    }

    /* Responsywność dla payment-column-right @768px */
    .discount-section {
        padding: 0rem 0.875rem 0.875rem 0.875rem;
    }

    .discount-section.discount-section--service-multiline {
        padding-bottom: 0.875rem;
    }

    .discount-section h4 {
        margin-bottom: 0;
    }

    .discount-input-group input[type="text"] {
        font-size: 14px;
        padding: 0.5rem;
    }

    .discount-input-group .btn {
        padding: 0.5rem 0.875rem;
        font-size: 14px;
    }

    .message-box {
        padding: 0.625rem 0.75rem;
        font-size: 14px;
    }

    /* Responsywność dla ogólnych komunikatów @768px */
    .message-box.success,
    .message-box.error,
    .message-box.warning {
        padding: 0.1875rem 0.375rem;
    }

    /* Responsywność dla discountMessage @768px */
    #discountMessage.success,
    #discountMessage.error,
    #discountMessage.warning {
        padding: 0rem 0.6875rem;
        font-size: 14px;
    }

    .price-summary {
        padding: 1.15rem 1.15rem 0rem 1.15rem;
    }

    .price-details {
        gap: 0.6rem;
    }

    .payment-actions .btn {
        flex: 0 1 auto;
        /* Zmiana z flex: 1 na flex: 0 1 auto, aby przyciski miały naturalną szerokość */
        min-width: auto;
        /* Usuń min-width */
        text-align: center;
        padding: 0.5rem 0.875rem;
        font-size: 14px;
        height: auto;
    }

    .account-type-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-section {
        margin: 1rem auto;
    }

    /* Responsywny przycisk submit na mobilnych */
    .form-submit-wrapper {
        justify-content: center;
    }

    .submit-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .access-plans .plans-grid {
        grid-template-columns: 1fr;
    }

    /* Team Management - responsywność 768px */
    .team-info-section .info-box {
        padding: 1.5rem;
    }

    .team-info-section .info-box h3 {
        font-size: 1.25rem;
    }

    .team-actions .btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }

    /* MFA settings - responsywność 768px */
    .mfa-status-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .mfa-disable-form {
        padding: 0.875rem 1rem;
        max-width: 100%;
    }

    /* Notification items - responsywność 768px */
    .notification-item {
        padding: 0.875rem 0;
    }

    .notification-info h4 {
        font-size: 0.95rem;
    }

    .notification-info p {
        font-size: 0.875rem;
    }

    /* Settings card - responsywność 768px */
    .settings-card {
        padding: 1.25rem;
    }

    .settings-card h3 {
        font-size: 1rem;
    }

    .settings-card-toggle-title {
        font-size: 1rem;
    }

    .settings-card-toggle-icon {
        width: 2rem;
        height: 2rem;
    }

    .settings-card-content > * {
        padding: 1rem 1.25rem 1.25rem;
    }

    .settings-header h2 {
        font-size: 1.3rem;
    }

    /* Searches intro - responsywność 768px */
    .searches-intro {
        padding: 0;
    }

    .searches-intro .info-text {
        font-size: 0.9rem;
    }

    /* Access sections - responsywność 768px */
    .access-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    /* ZGODY RODO - responsywność 768px */
    .consent-item {
        padding: 1.25rem;
    }

    .consent-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .listing-consent-item {
        padding: 1.25rem;
    }

    .listing-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .revoke-cv-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.85rem;
    }

    .consent-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Consent history - responsywność 768px */
    #consentHistoryContainer {
        overflow-x: auto;
    }

    .consent-history-table {
        min-width: 500px;
    }

    .consent-history-table th,

    /* Steps List - responsywność 768px */
    .steps-list li {
        padding-left: 2.5rem;
        margin-bottom: 1rem;
    }

    .steps-list li::before {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.85rem;
    }

    .steps-list li p {
        font-size: 0.9rem;
    }

    .cta-box {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }

    /* Access Plans - responsywność 768px */
    .access-plans .plan-group {
        padding: 1.25rem;
    }

    .access-plans .plan-group-title {
        font-size: 1.1rem;
    }

    .access-plans .plan-features-list {
        padding: 0.85rem;
    }

    .access-plans .plan-features-list li {
        font-size: 0.825rem;
    }

    .access-plans .plan-card {
        padding: 0.5rem 0.875rem;
    }

    .access-plans .plan-period {
        font-size: 0.9rem;
    }

    .access-plans .plan-price {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    form.form-border {
        padding: 0.9375rem;
    }

    .grecaptcha-badge {
        transform: scale(0.9);
    }

    .form-message {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem;
        font-size: 14px;
        box-sizing: border-box;
        gap: 0.75rem;
    }

    .form-message.show {
        max-height: 300px;
    }

    .form-message-icon {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
    }

    .form-message-title {
        font-size: 0.95rem;
    }

    .form-message-description {
        font-size: 0.875rem;
    }

    .form-section {
        padding: 0.625rem;
    }

    /* Invoices filters - responsywność 576px */

    /* Access Dashboard - Responsywność mobilna */
    .access-status-hero {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .status-hero-icon {
        width: 48px;
        height: 48px;
    }

    .status-hero-icon svg {
        width: 24px;
        height: 24px;
    }

    .status-hero-text h3 {
        font-size: 1.1rem;
    }

    .status-hero-text p {
        font-size: 0.85rem;
    }

    .status-hero-badge {
        font-size: 0.7rem;
        padding: 0.1875rem 0.625rem;
    }

    .access-stats-grid {
        grid-template-columns: 1fr;
    }

    .access-stat-card {
        padding: 0.875rem;
        gap: 12px;
    }

    .access-stat-card .stat-icon {
        width: 36px;
        height: 36px;
    }

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

    .access-stat-card .stat-number {
        font-size: 1.25rem;
    }

    .access-stat-card .stat-label {
        font-size: 0.85rem;
    }

    .access-stats-section,
    .access-history-section {
        padding: 1rem;
        border-radius: 10px;
    }

    .access-stats-section .section-header h3,
    .access-history-section .section-header h3 {
        font-size: 1rem;
    }

    .stats-period-selector .period-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    .payment-timeline-item {
        padding: 0.75rem 0;
        gap: 12px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
    }

    .payment-timeline-item::before {
        left: 5px;
    }

    .timeline-date {
        font-size: 0.85rem;
    }

    .timeline-plan {
        font-size: 0.875rem;
    }

    .timeline-purchased {
        font-size: 0.85rem;
    }

    .timeline-price {
        font-size: 0.9rem;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }

    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="number"],
    .form-group input[type="tel"],
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .form-section h3 {
        font-size: 18px;
    }

    .verification-content {
        padding: 0.75rem;
        margin: 0 12px;
    }

    .verification-content p {
        font-size: 14px;
    }

    .info-box {
        padding: 0.625rem;
        margin: 1rem 0;
    }

    .success-message,
    .error-message {
        padding: 0.625rem;
        font-size: 14px;
    }

    #newPasswordForm {
        margin: 0.625rem 0.75rem;
    }

    #newPasswordForm .form-group {
        margin-bottom: 1rem;
    }

    #newPasswordForm label {
        font-size: 14px;
        margin-bottom: 0.375rem;
    }

    .password-requirements {
        margin-top: 0.625rem;
        padding: 0.625rem;
    }

    .reset-status {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem 0.5rem;
    }

    #resetPasswordForm .btn,
    #forgottenPasswordForm .btn {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-label {
        padding: 0.125rem 0;
    }

    .form-footer {
        gap: 1rem;
        display: flex;
        justify-content: space-between;
    }

    .form-footer button {
        width: auto;
        max-width: 65%;
        flex: 0 0 auto;
    }

    /* Dodajemy specyficzne styles dla przycisku "Wróć" */
    .form-footer .btn-blank {
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Doprecyzowanie stylów przycisku "Przejdź do płatności" */
    .payment-actions .btn:not(.btn-blank) {
        flex: 0 1 auto;
        min-width: auto;
        max-width: 180px;
        text-align: center;
        padding: 0.5rem 0.875rem;
        font-size: 14px;
    }

    .price-row {
        font-size: 14px;
    }

    .price-row.total {
        font-size: 16px;
    }

    .terms-checkbox-wrapper {
        margin-bottom: 1rem;
        gap: 1rem;
    }

    .terms-text {
        font-size: 14px;
    }

    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 14px;
    }

    .submit-button {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .add-listing-btn {
        padding: 0.5rem 1rem;
        font-size: 14px;
    }

    .btn-add-listing {
        font-size: 16px;
        padding: 0.5rem 1rem;
    }

    #payment-header h2 {
        font-size: 1.2em;
    }

    .message-box {
        padding: 0.5rem 0.625rem;
    }

    /* Responsywność dla ogólnych komunikatów @576px */
    .message-box.success,
    .message-box.error,

    /* Responsywność dla discountMessage @576px */
    #discountMessage.success,
    #discountMessage.error,
    #discountMessage.warning {
        padding: 0rem 0.625rem;
    }

    /* Responsywność dla payment-column-right @576px */
    .discount-section {
        padding: 0rem 0.75rem 0.75rem 0.75rem;
    }

    .discount-section.discount-section--service-multiline {
        padding-bottom: 0.75rem;
    }

    .discount-section h4 {
        margin-bottom: 0;
    }

    .discount-toggle {
        gap: 10px;
    }

    .discount-toggle-icon {
        width: 22px;
        height: 22px;
    }

    .discount-input-group {
        gap: 6px;
    }

    .discount-input-group input[type="text"] {
        font-size: 14px;
        padding: 0.625rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    .discount-input-group .btn {
        padding: 0.625rem 1rem;
        font-size: 14px;
        min-height: 44px;
    }

    .price-summary {
        padding: 1rem 1rem 0rem 1rem;
        border-radius: 6px;
    }

    .price-details {
        gap: 0.5rem;
    }

    .price-row {
        font-size: 14px;
    }

    .price-row.total {
        font-size: 15px;
        padding-top: 0.65rem;
        margin-top: 0.4rem;
    }

    .payment-summary-box {
        border-radius: 4px;
    }

    .form-section.payment-summary-box {
        padding: 1rem 0.5rem;
    }

    /* Team Management - responsywność 576px */
    .team-info-section .info-box {
        padding: 1.25rem;
    }

    .team-info-section .info-box svg {
        margin-bottom: 1rem;
    }

    .team-info-section .info-box h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .team-info-section .info-box p {
        margin-bottom: 1.5rem;
        font-size: 0.9rem;
    }

    .team-features {
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .team-features .feature-item {
        padding: 0.65rem;
        gap: 0.5rem;
    }

    .team-features .feature-item span {
        font-size: 0.9rem;
    }

    .team-actions {
        margin-top: 1.5rem;
    }

    .team-actions .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    /* MFA settings - responsywność 576px */
    .mfa-status-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .mfa-status-row .switch {
        align-self: flex-start;
    }

    .mfa-disable-form .form-actions {
        justify-content: flex-end;
    }

    .mfa-disable-form .form-actions .btn {
        flex: 1 1 auto;
    }

    /* Notification items - responsywność 576px */
    .notification-item {
        padding: 0.75rem 0;
        align-items: stretch;
    }

    .notification-info {
        width: 100%;
    }

    .notification-info h4 {
        font-size: 0.9rem;
    }

    .notification-info p {
        font-size: 0.85rem;
    }

    .switch {
        align-self: flex-start;
    }

    /* Settings card - responsywność 576px */
    .settings-card {
        padding: 1rem;
    }

    .settings-card h3 {
        font-size: 0.95rem;
        flex-wrap: wrap;
    }

    .settings-card-toggle-title {
        font-size: 0.95rem;
    }

    .settings-card-toggle-icon {
        width: 1.875rem;
        height: 1.875rem;
    }

    .settings-card-content > * {
        padding: 0.875rem 1rem 1rem;
    }

    .settings-header h2 {
        font-size: 1.2rem;
    }

    .settings-header p {
        font-size: 0.875rem;
    }

    /* Searches intro - responsywność 576px */
    .searches-intro .info-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Access sections - responsywność 576px */
    .access-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* ZGODY RODO - responsywność 576px */
    .consent-list {
        gap: 1rem;
    }

    .consent-item {
        padding: 1rem;
    }

    .consent-info h4 {
        font-size: 0.95rem;
    }

    .consent-info p {
        font-size: 0.85rem;
    }

    .consent-date {
        font-size: 0.85rem;
    }

    .service-consent {
        padding: 0.875rem;
        margin: 0.875rem 0;
    }

    .listing-consents-list {
        gap: 0.75rem;
    }

    .listing-consent-item {
        padding: 1rem;
    }

    .listing-info h4 {
        font-size: 1rem;
    }

    .consent-label,
    .consent-value {
        font-size: 0.85rem;
    }

    .empty-state,
    .error-state {
        padding: 1.5rem;
    }

    /* Consent history - responsywność 576px */
    .consent-history-table {
        min-width: 400px;
    }

    .consent-history-table th,
    .consent-history-table td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    /* Steps List - responsywność 576px */
    .steps-list li {
        padding-left: 2.25rem;
        margin-bottom: 0.85rem;
    }

    .steps-list li::before {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.8rem;
    }

    .steps-list li strong {
        font-size: 0.9rem;
    }

    .steps-list li p {
        font-size: 0.85rem;
    }

    .cta-box {
        margin-top: 1rem;
        padding-top: 1rem;
    }

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

    .searches-intro .badge-pro {
        font-size: 0.7rem;
        padding: 0.125rem 0.375rem;
    }

    /* Access Plans - responsywność 576px */
    .access-plans .plan-group {
        padding: 1rem;
    }

    .access-plans .plan-group-title {
        font-size: 1rem;
    }

    .access-plans .plan-features-list {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .access-plans .plan-features-list li {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .access-plans .plan-periods {
        gap: 0.5rem;
    }

    .access-plans .plan-card {
        padding: 0.5rem 0.75rem;
    }

    .access-plans .plan-period {
        font-size: 0.85rem;
    }

    .access-plans .plan-price {
        font-size: 0.95rem;
    }

    .access-plans .plan-price-per-day {
        font-size: 0.75rem;
    }

    .invoices-filter-actions {
        justify-content: stretch;
    }

    .invoices-filters-row {
        gap: 16px;
    }
}

@media (max-width: 420px) {
    form.form-border {
        padding: 0.625rem;
    }

    .form-section {
        padding: 0.5rem;
    }

    /* Form messages - responsywność 420px */
    .form-message {
        padding: 0.625rem;
        font-size: 14px;
        gap: 0.625rem;
    }

    .form-message.show {
        max-height: 400px;
    }

    .form-message-icon {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
    }

    .form-message-icon svg {
        width: 1rem;
        height: 1rem;
    }

    .form-message-title {
        font-size: 0.9rem;
    }

    .form-message-description {
        font-size: 0.8125rem;
    }

    /* Access Dashboard - Responsywność mobilna 420px */
    .access-status-hero {
        padding: 1rem 0.75rem;
    }

    .status-hero-icon {
        width: 40px;
        height: 40px;
    }

    .status-hero-icon svg {
        width: 20px;
        height: 20px;
    }

    .status-hero-text h3 {
        font-size: 1rem;
    }

    .status-hero-text p {
        font-size: 0.85rem;
    }

    .status-hero-meta .meta-item {
        padding: 0.625rem 0.75rem;
    }

    .status-hero-meta .meta-label {
        font-size: 0.85rem;
    }

    .status-hero-meta .meta-value {
        font-size: 0.9rem;
    }

    .access-action-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .access-stats-section,
    .access-history-section {
        padding: 0.875rem;
    }

    .access-stat-card {
        padding: 0.75rem;
        gap: 10px;
    }

    .access-stat-card .stat-icon {
        width: 32px;
        height: 32px;
    }

    .access-stat-card .stat-icon svg {
        width: 16px;
        height: 16px;
    }

    .access-stat-card .stat-number {
        font-size: 1.1rem;
    }

    .form-group input:not([type="checkbox"]),
    .form-group select,
    .form-group textarea {
        padding: 0.625rem;
        font-size: 16px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .form-group input.lshorter-width-input,
    .form-group textarea.lshorter-width-input {
        width: 100% !important;
    }

    .password-input-wrapper,
    .phone-input-wrapper {
        width: 100% !important;
    }

    /* Dodatkowe ujednolicenie szerokości pól na bardzo małych ekranach */
    .form-group input.shorter-width-input,
    .form-group select.shorter-width-input,
    .form-group textarea.shorter-width-input,
    .form-group input.mshorter-width-input,
    .form-group select.mshorter-width-input,
    .form-group textarea.mshorter-width-input,
    .phone-input-wrapper.shorter-width-input,
    .phone-input-wrapper.mshorter-width-input {
        width: 100% !important;
    }

    .password-requirements {
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    .password-requirements p {
        margin-bottom: 0.25rem;
    }

    .password-requirements li {
        margin-bottom: 0.125rem;
    }

    .dropdown-content {
        max-width: 100%;
    }

    .info-box {
        padding: 0.625rem;
        margin: 0.75rem 0;
        font-size: 14px;
    }

    .success-message,
    .error-message {
        padding: 0.625rem;
        font-size: 14px;
    }

    .verification-content {
        padding: 0.625rem;
        margin: 0 8px;
    }

    .verification-content p {
        font-size: 14px;
    }

    .terms-text {
        font-size: 13.5px;
    }

    .field-info {
        font-size: 0.8rem;
        margin-top: 0.125rem;
    }

    .char-counter {
        min-width: 50px;
    }

    /* Responsywność dla payment-column-right @420px */
    .discount-section {
        padding: 0rem 0.625rem 0.625rem 0.625rem;
    }

    .discount-section.discount-section--service-multiline {
        padding-bottom: 0.625rem;
    }

    .discount-section h4 {
        margin-bottom: 0;
    }

    .discount-toggle {
        gap: 8px;
    }

    .discount-toggle-icon {
        width: 20px;
        height: 20px;
    }

    .discount-input-group input[type="text"] {
        padding: 0.625rem;
        min-height: 44px;
        box-sizing: border-box;
    }

    .discount-input-group .btn {
        padding: 0.625rem 1rem;
        min-height: 44px;
    }

    .message-box.success,
    .message-box.error,

    /* Responsywność dla discountMessage @420px */
    #discountMessage.success,
    #discountMessage.error,
    #discountMessage.warning {
        padding: 0.25rem 0.625rem;
        font-size: 14px;
    }

    .price-summary {
        padding: 0.85rem 0.85rem 0rem 0.85rem;
    }

    .price-details {
        gap: 0.45rem;
    }

    .price-row.total {
        font-size: 14px;
        padding-top: 0.5rem;
        margin-top: 0.35rem;
    }

    .base-price,
    .discount-amount,
    .total-price {
        font-size: 14px;
    }

    .price-row.total .total-price {
        font-size: 15px;
        font-weight: 700;
    }

    .form-section.payment-summary-box {
        padding: 0.875rem 0.375rem;
    }

    /* Team Management - responsywność 420px */
    .team-info-section .info-box {
        padding: 1rem;
    }

    .team-info-section .info-box h3 {
        font-size: 1rem;
    }

    .team-info-section .info-box p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .team-features .feature-item {
        padding: 0.5rem;
    }

    .team-features .feature-item span {
        font-size: 0.875rem;
    }

    .team-actions .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        min-height: 44px;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 14px;
        letter-spacing: 0.3px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .submit-button {
        padding: 0.625rem 1.125rem;
        font-size: 14px;
        min-height: 44px;
    }

    .add-listing-btn {
        padding: 0.625rem 1.125rem;
        font-size: 14px;
        border-width: 2px;
        min-height: 44px;
    }

    .btn-add-listing {
        font-size: 15px;
        padding: 0.625rem 1.125rem;
        min-height: 44px;
    }

    /* MFA settings - responsywność 420px */
    .mfa-status-info strong {
        font-size: 0.95rem;
    }

    .mfa-disable-form {
        padding: 0.75rem;
        max-width: 100%;
    }

    /* Notification items - responsywność 420px */
    .notification-item {
        padding: 0.625rem 0;
    }

    .notification-info h4 {
        font-size: 0.875rem;
    }

    .switch {
        width: 38px;
        height: 20px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
    }

    input:checked+.slider:before {
        transform: translateX(18px);
    }

    /* Settings card - responsywność 420px */
    .settings-card {
        padding: 0.75rem;
    }

    .settings-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .settings-card-toggle {
        padding: 0.75rem;
    }

    .settings-card-toggle-title {
        font-size: 0.95rem;
    }

    .settings-card-toggle-icon {
        width: 1.75rem;
        height: 1.75rem;
    }

    .settings-card-content > * {
        padding: 0.75rem 0.75rem 0.875rem;
    }

    .settings-header h2 {
        font-size: 1.1rem;
    }

    .settings-header p {
        font-size: 0.85rem;
    }

    /* Searches intro - responsywność 420px */
    .searches-intro .info-text {
        font-size: 0.85rem;
    }

    /* Access sections - responsywność 420px */
    .access-stats-grid {
        gap: 8px;
    }

    /* ZGODY RODO - responsywność 420px */
    .consent-item {
        padding: 0.85rem;
    }

    .consent-info h4 {
        font-size: 0.95rem;
    }

    .consent-info p {
        font-size: 0.85rem;
    }

    .listing-consent-item {
        padding: 0.85rem;
    }

    .listing-info h4 {
        font-size: 0.95rem;
    }

    .listing-date {
        font-size: 0.85rem;
    }

    .listing-status {
        font-size: 0.8rem;
    }

    .consent-history-table {
        min-width: 320px;
    }

    .consent-history-table th,
    .consent-history-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .status-badge {
        padding: 0.1875rem 0.375rem;
        font-size: 0.8rem;
    }

    /* Steps List - responsywność 420px */
    .steps-list li {
        padding-left: 2rem;
        margin-bottom: 0.75rem;
    }

    .steps-list li::before {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.8rem;
    }

    .steps-list li strong {
        font-size: 0.875rem;
    }

    .steps-list li p {
        font-size: 0.85rem;
    }

    /* Access Plans - responsywność 420px */
    .access-plans .plan-group {
        padding: 0.85rem;
    }

    .access-plans .recommended-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.75rem;
    }

    .access-plans .plan-group-title {
        font-size: 0.95rem;
    }

    .access-plans .plan-features-list {
        padding: 0.65rem;
    }

    .access-plans .plan-features-list li {
        font-size: 0.85rem;
    }

    .access-plans .plan-card {
        padding: 0.625rem 0.875rem;
        min-height: 44px;
    }

    .access-plans .plan-period {
        font-size: 0.85rem;
    }

    .access-plans .plan-price {
        font-size: 0.9rem;
    }

    .price-row {
        font-size: 14px;
    }

    .message-box.warning {
        padding: 0.25rem 0.5rem;
    }
}

@media print {

    .form-border,
    .form-group input,
    .form-group select,
    .form-group textarea {
        display: none !important;
    }

    .payment-columns,
    .payment-column-left,
    .payment-column-right,
    .payment-summary-box,
    .payment-actions {
        display: none !important;
    }
}

/* Modyfikacja pól hasła dla Safari na iOS */
@supports (-webkit-touch-callout: none) {

    /* Wyłączenie automatycznego podświetlania i formatowania w Safari */
    input[type="password"] {
        /* Przezroczyste tło dla autofill */
        -webkit-box-shadow: 0 0 0px 1000px white inset !important;
        box-shadow: 0 0 0px 1000px white inset !important;
        background-color: white !important;

        /* Zapewnienie normalnego koloru tekstu */
        -webkit-text-fill-color: #333 !important;
        color: #333 !important;

        /* Wymuszenie renderingu tekstu jako znaków ukrytych */
        font-family: -apple-system, BlinkMacSystemFont, sans-serif !important;
    }

    /* Style dla aktywnego pola hasła */
    input[type="password"]:focus {
        -webkit-box-shadow: 0 0 0px 1000px white inset !important;
        box-shadow: 0 0 0px 1000px white inset !important;
        background-color: white !important;
    }
}

/* Dodatkowa reguła dla przeglądarek WebKit (Safari) */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    input[type="password"] {
        letter-spacing: 0.1em;
        /* Zwiększa odstępy między znakami dla lepszej czytelności kropek */
        font-size: 1.1em;
        /* Nieco zwiększa czcionkę dla lepszej widoczności kropek */
    }
}