select {
	cursor: pointer;
}

textarea {
	min-height: 10em;
}

/* === THEMIFY ULTRA PORTFOLIO STYLE === */
#fk-wrapper {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-wrap: wrap;
	align-items: flex-start;
    gap: 50px;
    color: var(--fk-text);
}

/* === SIDEBAR === */
.fk-sidebar {
    flex: 1;
    background: var(--fk-bg);
    padding: 40px 35px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: calc(120px + 20px);
    transition: all 0.3s ease;
}

.fk-sidebar h3 {
    margin: 0 0 30px 0;
    color: var(--fk-primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.fk-sidebar-info {
	text-align: center;
	font-weight: 600;
	color: var(--fk-secondary);
	margin-bottom: 28px;
	font-size: 15px;
	line-height: 1.4;
}

.fk-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.fk-summary-list li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.5;
}

.fk-summary-list li:last-child {
    border-bottom: none;
}

.fk-summary-list li strong {
    color: var(--fk-primary);
    font-weight: 600;
    text-align: right;
    max-width: 55%;
    font-family: 'Poppins', sans-serif;
}

.fk-summary-highlight {
    font-weight: 800 !important;
}

.fk-summary-highlight strong {
    font-size: 19px !important;
    color: var(--fk-accent) !important;
}

.fk-val-accent strong {
    color: var(--fk-secondary);
    font-weight: 700;
}

.fk-tooltip-icon {
        display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 12px;
		height: 12px;
		border-radius: 50%;
		background: var(--fk-primary);
		color: #fff;
		font-size: 10px;
		font-weight: 700;
		cursor: help;
		margin: -10px 0 0 0;
		position: relative;
		vertical-align: middle;
		font-style: normal;
}

.fk-tooltip-icon:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--fk-radius);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1.5;
}

.fk-tooltip-icon:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    z-index: 101;
    pointer-events: none;
}

.fk-empty-state {
    text-align: center;
    color: #aaa;
    font-style: italic;
    padding: 40px 20px;
    font-size: 15px;
    line-height: 1.6;
}

/* === GŁÓWNA SEKCJA === */
.fk-main {
    flex: 2;
    background: var(--fk-bg);
    padding: 50px 45px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.fk-main h2 {
    margin: 0 0 15px 0;
    font-family: 'Poppins', sans-serif;
    color: var(--fk-primary);
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.fk-main > p {
    color: #888;
    font-size: 17px;
    margin-bottom: 45px;
    line-height: 1.6;
}

.fk-section-title {
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--fk-text);
    margin: 45px 0 25px 0;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e5e5;
    font-family: 'Poppins', sans-serif;
}

.fk-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.fk-col {
    flex: 1;
}

.fk-col label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    font-family: 'Poppins', sans-serif;
}

.fk-input {
    width: 100% !important;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--fk-radius);
    font-size: 15px;
    transition: border-color 0.2s ease;
    background: var(--fk-bg-alt);
    box-sizing: border-box;
	resize: vertical;
    font-family: 'Open Sans', sans-serif;
    color: var(--fk-text);
}

.fk-input:focus {
    outline: none;
    background: var(--fk-bg);
    border-color: var(--fk-accent);
}

.fk-input:hover:not(:focus) {
    border-color: #c0c0c0;
}

/* === SLIDER === */
input[type=range] {
    -webkit-appearance: none;
    width: 100% !important;
    background: transparent;
    cursor: pointer;
    height: 40px;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(
        to right,
        var(--fk-accent) 0%,
        var(--fk-accent) var(--val-percent, 0%),
        #e0e0e0 var(--val-percent, 0%),
        #e0e0e0 100%
    );
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--fk-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-top: -8px;
    transition: all 0.15s ease;
    cursor: grab;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    box-shadow: 0 3px 12px color-mix(in srgb, var(--fk-accent) 40%, transparent);
}

input[type=range]::-webkit-slider-thumb:active {
    cursor: grabbing;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

input[type=range]::-moz-range-progress {
    background: var(--fk-accent);
    height: 6px;
    border-radius: 3px 0 0 3px;
}

input[type=range]::-moz-range-thumb {
    height: 22px;
    width: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--fk-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: grab;
}

input[type=range]::-moz-range-thumb:hover {
    transform: scale(1.25);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
	margin-top: -10px;
}

/* === CHECKBOXY === */
.fk-checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.fk-checkbox-wrapper {
	display: grid !important;
	grid-template-columns: 40px 1fr;
	background: var(--fk-bg);
	padding: 18px;
	border-radius: var(--fk-radius);
	border: 2px solid #e0e0e0;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fk-checkbox-wrapper:hover {
	border-color: var(--fk-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--fk-accent) 10%, transparent);
}

.fk-checkbox-wrapper input {
	margin-top: 4px;
	width: 20px;
	height: 20px;
	accent-color: var(--fk-accent);
}

.fk-checkbox-wrapper div {
    line-height: 1.5;
}

.fk-checkbox-wrapper strong {
    font-size: 15px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.fk-checkbox-content {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.fk-checkbox-content strong {
	font-size: 15px;
	font-weight: 600;
	color: #333;
    font-family: 'Poppins', sans-serif;
}

.fk-checkbox-content .price {
	color: var(--fk-accent);
	font-weight: 600;
	margin-left: 4px;
}

.fk-checkbox-content .desc {
	font-size: 13px;
	color: #888;
	line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
}

/* zaznaczona karta */
.fk-checkbox-wrapper:has(input:checked) {
	border-color: var(--fk-accent);
	background: color-mix(in srgb, var(--fk-accent) 3%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fk-accent) 10%, transparent);
}

/* ukryta karta dodatku — specyficzność (0,2,0) bije (0,1,0) z display:grid !important powyżej */
.fk-checkbox-wrapper.fk-extra-hidden {
    display: none !important;
}

/* === PRZYCISK === */
.fk-btn {
    background: var(--fk-secondary);
    color: #fff;
    padding: 18px 40px;
    border: none;
    border-radius: var(--fk-radius);
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    margin-top: 25px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.fk-btn:hover {
    background: var(--fk-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

/* === POMOCNICZE === */
.hidden {
    display: none !important;
}

.fk-disabled {
    opacity: 0.35;
    pointer-events: none;
    filter: grayscale(1);
}

.fk-pkg-group {
    display: flex;
    gap: 12px;
}

.fk-pkg-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 10px;
    border: 2px solid #e0e0e0;
    border-radius: var(--fk-radius);
    background: var(--fk-bg-alt);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.fk-pkg-btn:hover {
    border-color: var(--fk-accent);
    background: var(--fk-bg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fk-accent) 10%, transparent);
}

.fk-pkg-active {
    border-color: var(--fk-accent) !important;
    background: var(--fk-bg) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fk-accent) 12%, transparent) !important;
}

.fk-pkg-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--fk-primary);
}

.fk-pkg-desc {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.4;
    text-transform: none;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (max-width: 600px) {
    .fk-pkg-group {
        flex-direction: column;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1100px) {
    #fk-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    .fk-main {
        width: 100%;
        order: 1;
    }
    .fk-sidebar {
        width: 100%;
        order: 2;
        position: relative;
        top: 0;
    }
    .fk-row {
        flex-direction: column;
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .fk-main {
        padding: 35px 25px;
    }
    .fk-sidebar {
        padding: 30px 25px;
    }
    .fk-main h2 {
        font-size: 28px;
    }
}

/* Custom Calendar Styles */
.custom-calendar-wrapper {
    position: relative;
}

.date-input-display {
    width: 100%;
    cursor: pointer;
    background: var(--fk-bg);
}

.inline-calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--fk-bg);
    border: 2px solid var(--fk-primary);
    border-radius: var(--fk-radius);
    padding: 15px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.inline-calendar.hidden {
    display: none;
}

.calendar-nav {
    display: grid;
    grid-template-columns: 28px 28px 1fr 28px 28px;
    align-items: center;
    gap: 3px;
    margin-bottom: 12px;
}

.calendar-nav button {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--fk-primary);
    border: 1.5px solid var(--fk-primary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: background .18s, color .18s;
}

.calendar-nav button:hover {
    background: var(--fk-primary);
    color: white;
    transform: none;
}

.calendar-nav > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: var(--fk-primary);
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-day-name {
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: var(--fk-text);
    padding: 5px 0;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: var(--fk-radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    background: var(--fk-bg);
}

.calendar-date:hover:not(.empty):not(.disabled) {
    background: var(--fk-accent);
    color: white;
    transform: scale(1.1);
}

.calendar-date.empty {
    border: none;
    cursor: default;
}

.calendar-date.disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    border-color: #ccc;
}

.calendar-date.today {
    border: 2px solid var(--fk-secondary);
    font-weight: bold;
}

.calendar-date.selected {
    background: var(--fk-primary);
    color: white;
    font-weight: bold;
}

/* === PICKER MIESIĄC / ROK === */
.fk-cal-month-btn,
.fk-cal-year-btn {
    display: inline-block;
    cursor: pointer;
    padding: 1px 4px;
    border-radius: 4px;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.fk-cal-month-btn:hover,
.fk-cal-year-btn:hover {
    background: color-mix(in srgb, var(--fk-primary) 12%, transparent);
}
.fk-cal-picking {
    cursor: default;
    pointer-events: none;
    font-style: italic;
    letter-spacing: 0.05em;
}

.fk-cal-months-grid,
.fk-cal-years-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    padding: 6px 0;
}

.fk-cal-month-cell,
.fk-cal-year-cell {
    padding: 10px 2px;
    text-align: center;
    border-radius: var(--fk-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    border: 1px solid #e4e4e4;
    background: var(--fk-bg-alt);
    line-height: 1.3;
}
.fk-cal-month-cell:hover,
.fk-cal-year-cell:hover {
    background: var(--fk-accent);
    color: #fff;
    border-color: var(--fk-accent);
}
.fk-cal-month-cell.active,
.fk-cal-year-cell.active {
    background: var(--fk-primary);
    color: #fff;
    font-weight: 700;
    border-color: var(--fk-primary);
}

#hours {
	border-bottom: none;
	margin: 0;
}

#hours-container {
	padding-top: 10px;
	margin-top: 30px;
}

/* === TOAST NOTIFICATIONS === */
#fk-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.fk-toast {
    background: #333;
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--fk-radius);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    max-width: 340px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    pointer-events: all;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fk-toast.fk-toast-visible {
    opacity: 1;
    transform: translateX(0);
}

.fk-toast.fk-toast-warning {
    background: #e67e22;
}

.fk-toast.fk-toast-error {
    background: var(--fk-secondary);
}

/* === MODAL OVERLAY === */
#fk-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

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

.fk-modal-box {
    background: var(--fk-bg);
    border-radius: var(--fk-radius);
    padding: 48px 40px 36px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    animation: fk-modal-in 0.35s cubic-bezier(.22,.68,0,1.2);
}

@keyframes fk-modal-in {
    from { transform: scale(0.88); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

.fk-modal-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 20px;
}

.fk-modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--fk-primary);
    margin: 0 0 14px;
}

.fk-modal-body {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin: 0 0 28px;
}

.fk-modal-btn {
    background: var(--fk-secondary);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: var(--fk-radius);
    font-size: 15px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
}

.fk-modal-btn:hover {
    background: var(--fk-primary);
}

/* === KOD RABATOWY === */
#fk-promo-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,.07);
}

#fk-promo-toggle {
    background: none;
    border: none;
    color: var(--fk-accent);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.15s;
}

#fk-promo-toggle:hover {
    opacity: .75;
    background: none;
    box-shadow: none;
    transform: none;
}

.fk-promo-arrow {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-top: -2px;
}

#fk-promo-toggle.is-open .fk-promo-arrow {
    transform: rotate(225deg);
    margin-top: 2px;
}

#fk-promo-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
}

#fk-promo-box.is-open {
    max-height: 120px;
    margin-top: 12px;
}

.fk-promo-input-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.fk-promo-feedback-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

#fk-promo-input {
    flex: 1;
    min-width: 80px;
    margin: 0 !important;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: var(--fk-radius);
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Open Sans', sans-serif;
    background: var(--fk-bg-alt);
    color: var(--fk-text);
    letter-spacing: 1px;
    transition: border-color 0.2s ease;
}

#fk-promo-input:focus {
    outline: none;
    background: var(--fk-bg);
    border-color: var(--fk-accent);
}

#fk-promo-input:hover:not(:focus) {
    border-color: #c0c0c0;
}

#fk-promo-apply {
    background: var(--fk-primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: var(--fk-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
    transition: opacity 0.15s;
}

#fk-promo-apply:hover {
    background-color: var(--fk-primary);
    opacity: .88;
    box-shadow: none;
    transform: none;
}

#fk-promo-msg {
    font-size: 13px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: var(--fk-accent);
    flex: 1;
    line-height: 1.4;
}

#fk-promo-remove {
    background: none;
    border: none;
    color: var(--fk-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

#fk-promo-remove:hover {
    opacity: .75;
    background: none;
    box-shadow: none;
    transform: none;
}

#fk-promo-remove.hidden {
    display: none;
}

.fk-promo-applied strong {
    color: var(--fk-accent) !important;
}
