@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&display=swap');

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f3f5f8;
    color: #222;
}

.container {
    max-width: 1050px;
    margin: 34px auto;
    padding: 0 16px;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 20px;
    margin-bottom: 16px;
}

.contact-banner {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: 310px;
    padding: 56px 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 16px;
    font-family: 'Montserrat', Arial, sans-serif;
    background: linear-gradient(
            255deg,
            rgba(178, 90, 7, 0.70) 0%,
            rgba(178, 90, 7, 0.56) 32%,
            rgba(178, 90, 7, 0.32) 58%,
            rgba(178, 90, 7, 0.10) 82%,
            rgba(178, 90, 7, 0.00) 100%
        ),
        url('https://czajkowskifotografia.pl/wp-content/uploads/2026/05/sesja-040baner.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
}

.contact-banner__content {
    position: absolute;
    z-index: 2;
    right: 42px;
    bottom: 30%;
    text-align: right;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 18px;
    padding: 18px 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.contact-banner h2 {
    margin: 0 0 30px;
    color: #fff;
    font-size: clamp(24px, 2.8vw, 50px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.contact-banner h2 span {
    display: block;
    white-space: nowrap;
}

.contact-banner__phone {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    font-size: clamp(20px, 2.2vw, 36px);
    font-weight: 400;
    text-decoration: none;
    line-height: 1;
}

.contact-banner__phone span {
    font-size: 0.95em;
}

.client-banner-title {
    color: #fff;
    font-size: clamp(22px, 2.4vw, 40px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.client-banner-name {
    color: #fff;
    font-size: clamp(20px, 2.2vw, 36px);
    line-height: 1.15;
    font-weight: 700;
    margin-top: 8px;
    text-transform: uppercase;
}

h1 {
    margin-top: 0;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #ccd3dc;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    border: 0;
    border-radius: 8px;
    background: #B25A07;
    color: #fff;
    padding: 10px 14px;
    cursor: pointer;
}

button.secondary {
    background: #4b5563;
}

button.danger {
    background: #b91c1c;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px 8px;
    border-bottom: 1px solid #e6e8ed;
    text-align: left;
    vertical-align: middle;
}

.muted {
    color: #677084;
    font-size: 14px;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.alert.error {
    background: #ffe8e8;
    color: #841111;
}

.alert.success {
    background: #eaf9ea;
    color: #145c1f;
}

.success-popup {
    background: #eaf9ea;
    border: 1px solid #b7e4b8;
    color: #145c1f;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.success-popup a {
    color: #0b7d26;
    font-weight: 700;
    word-break: break-all;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.admin-tab {
    display: inline-block;
    background: #fff;
    border: 1px solid #d1d5db;
    color: #374151;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
}

.admin-tab.is-active {
    background: #B25A07;
    border-color: #B25A07;
    color: #fff;
}

.admin-filter-grid {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 8px;
    align-items: end;
}

.admin-account-form {
    max-width: 680px;
}

.logout-btn {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    border-radius: 8px;
    padding: 9px 14px;
    font-weight: 700;
}

.logout-btn:hover {
    background: #b91c1c;
    text-decoration: none;
}

.secondary-link {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 700;
}

.gear-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
}

.gear-link:hover {
    background: #f3f4f6;
    text-decoration: none;
}

.copy-btn {
    margin-top: 6px;
    padding: 6px 9px;
    font-size: 12px;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.quick-action-btn {
    min-width: 112px;
    text-align: center;
    justify-content: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
}

.status-badge.active {
    color: #166534;
    background: #ecfdf3;
    border-color: #bbf7d0;
}

.status-badge.inactive {
    color: #92400e;
    background: #fff7ed;
    border-color: #fed7aa;
}

.status-badge.archived {
    color: #374151;
    background: #f3f4f6;
    border-color: #d1d5db;
}

.app-errors-list {
    display: grid;
    gap: 8px;
}

.app-error-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fafafa;
}

.inline-edit-row td {
    background: #f9fafb;
}

.inline-edit-form {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 12px;
}

.month-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.month-nav-title {
    font-size: 18px;
    font-weight: 700;
}

.month-nav-btn {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 7px 11px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #dadce0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.calendar-head {
    font-weight: 600;
    text-align: center;
    font-size: 12px;
    color: #5f6368;
    padding: 10px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.calendar-day {
    min-height: 118px;
    border-right: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px;
    background: #fff;
}

.calendar-day:nth-child(7n) {
    border-right: 0;
}

.calendar-day.empty {
    background: #f8fafc;
}

.calendar-day.is-today .day-number {
    background: #1a73e8;
    color: #fff;
}

.day-number {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
}

.calendar-item {
    display: block;
    background: #e8f0fe;
    color: #174ea6;
    border-radius: 6px;
    padding: 4px 6px;
    margin-bottom: 4px;
    font-size: 11px;
    text-decoration: none;
    line-height: 1.25;
}

.calendar-item-title {
    display: block;
    font-weight: 700;
}

.calendar-item-meta {
    display: block;
    opacity: 0.9;
}

.calendar-item:hover {
    text-decoration: underline;
}

.services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 6px;
}

.wizard-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.autosave-status {
    margin: -6px 0 12px;
    font-size: 13px;
    color: #4b5563;
}

.autosave-status.is-dirty { color: #92400e; }
.autosave-status.is-saving { color: #1d4ed8; }
.autosave-status.is-ok { color: #166534; }
.autosave-status.is-warning { color: #92400e; }
.autosave-status.is-error { color: #b91c1c; }

.wizard-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-weight: 700;
    padding: 0;
}

.wizard-step-dot.is-active {
    background: #B25A07;
    color: #fff;
    border-color: #B25A07;
}

.wizard-step h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    gap: 10px;
}

.wizard-actions-sticky {
    position: sticky;
    bottom: 12px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    z-index: 20;
}

.field-hint {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.event-conditional {
    border: 1px solid #e5e7eb;
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.print-summary {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}

@media print {
    body * {
        visibility: hidden;
    }
    #print-summary,
    #print-summary * {
        visibility: visible;
    }
    #print-summary {
        position: absolute;
        inset: 0;
        border: 0;
        padding: 0;
    }
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-item input[type="checkbox"] {
    width: auto;
}

.package-buttons {
    display: grid;
    gap: 10px;
    max-width: 520px;
}

.package-btn {
    appearance: none;
    border: 1px solid rgba(178, 90, 7, 0.28);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    cursor: default;
    background:
        linear-gradient(135deg, rgba(178, 90, 7, 0.12), rgba(178, 90, 7, 0.04)),
        #ffffff;
    color: #3e2a1a;
    box-shadow: 0 8px 18px rgba(18, 18, 18, 0.06);
    opacity: 1;
}

.package-btn--premium {
    background:
        linear-gradient(135deg, rgba(178, 90, 7, 0.22), rgba(122, 72, 20, 0.18)),
        #fffaf2;
    border-color: rgba(178, 90, 7, 0.45);
}

.package-btn.is-active {
    border-color: #B25A07;
    box-shadow:
        0 0 0 2px rgba(178, 90, 7, 0.18),
        0 12px 24px rgba(28, 20, 14, 0.14);
}

.package-btn__title {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.package-btn__meta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

a {
    color: #0b66ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 4px 10px;
}

.login-footer__left h3 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: 0.4px;
    color: #2a2f38;
}

.social-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-buttons a {
    background: #6d6f73;
    color: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    text-decoration: none;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.social-buttons a svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    opacity: 0.95;
}

.login-footer__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-weight: 700;
    margin-top: 4px;
}

.login-footer__right a {
    color: #3a4352;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.15;
}

@media (max-width: 760px) {
    .row,
    .row-3,
    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .contact-banner {
        min-height: 240px;
        padding: 34px 24px;
        border-radius: 24px;
    }

    .contact-banner h2 {
        margin-bottom: 22px;
    }

    .contact-banner h2 span {
        white-space: normal;
    }

    .login-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-footer__right {
        align-items: flex-start;
    }

    .login-footer__left h3 {
        font-size: 22px;
    }

    .login-footer__right a {
        font-size: 17px;
    }
}
