:root {
    --primary-brown: #66250B;
    --light-bg: #fff;
    --border-color: #E3E3E3;
    --text-gray: #1e1e1e;
    --text-black: #000000;
    --text-input: #1E1E1E80;
}

* {
    scroll-behavior: smooth;
}

.form {
    display: none !important;
}

.form.active {
    display: flex !important;
}


/* Progress Bar */
.formMetamorfozy .progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 5px;
}

.formMetamorfozy .step {
    height: 8px;
    flex: 1;
    background-color: #e0ddd9;
}

.formMetamorfozy .step.active {
    background-color: var(--primary-brown);
}

.owner-form {
    scroll-margin-top: 64px;
}

.owner-form h2 {
    color: #66250B;
    text-align: center;
    font-family: Trirong;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}

.formMetamorfozy form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
}

.formMetamorfozy .form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.formMetamorfozy .form-group {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    width: 100%;
    gap: 4px;
    margin: 0px;
}

.formMetamorfozy label {
    color: var(--text-gray);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    text-align: start;
    line-height: normal;
    margin: 0px;
}

.formMetamorfozy label span a {
    text-decoration: underline;
    color: var(--text-gray);
}

.formMetamorfozy input::placeholder {
    color: var(--text-gray);
}

.formMetamorfozy input {
    width: 100%;
    outline: none;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    box-sizing: border-box;
    color: var(--text-black);

    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

.formMetamorfozy select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: white;
    box-sizing: border-box;
    color: var(--text-black);
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

/* Przycisk dodawania właścicielki */
.formMetamorfozy .add-owner-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 1px solid var(--primary-brown);
    background: transparent;
    color: var(--primary-brown);
    cursor: pointer;
    font-size: 13px;
}

/* Przyciski nawigacyjne */
.formMetamorfozy .navigation {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 32px;
    gap: 20px;
}

.formMetamorfozy .btn-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 40%;
    height: 48px;
    padding: 0;
    border: 1px solid var(--primary-brown);
    background-color: transparent;
    color: var(--primary-brown);
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
}

.formMetamorfozy input::placeholder {
    color: #ccc;
}

/* pitek css */
.photo-sections {
    display: flex;
    gap: 24px;
    width: 100%;
}

.photo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 47%;
}

.photo-section label {
    font-size: 13px;
}

.photo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-brown);
    color: #fff;
    padding: 8px 10px;
    font-size: 12px;
}

.photo-item span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.photo-item button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

.photo-add-btn {
    background: transparent;
    border: 1px solid var(--primary-brown);
    color: var(--primary-brown);
    font-size: 13px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    width: 100%;
}

.month-btn {
    border: 1px solid var(--primary-brown);
    background: transparent;
    color: var(--primary-brown);
    font-size: 11px;
    padding: 6px 4px;
    cursor: pointer;
}

.month-btn.active {
    background-color: var(--primary-brown);
    color: #fff;
}

.photo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-add-btn {
    width: 100%;
}

.month-section {
    width: 100%;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.month-section h3 {
    color: var(--primary-brown);
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0 10px;
}

.agreements-title {
    color: var(--primary-brown);
    font-size: 16px;
    font-style: italic;
    margin: 20px 0 10px;
}

.checkbox-label {
    display: flex;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
}

.checkbox-label input {
    margin-top: 2px;
}

.agreements {
    gap: 16px;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.agreement-item input {
    display: none;
}

/* checkbox */
.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ✓ */
.checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    opacity: 0;
    margin-bottom: 3px;
}

/* checked */
.agreement-item input:checked+.checkbox-custom {
    background-color: var(--primary-brown);
}

.agreement-item input:checked+.checkbox-custom::after {
    opacity: 1;
}

.agreement-text {
    color: var(--text-gray);
}

.label-with-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* IKONKA */
.info-tooltip {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    color: var(--primary-brown);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* DYMek */
.tooltip-content {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border: 1px solid var(--primary-brown);
    color: var(--text-gray);
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

/* STRZAŁKA */
.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary-brown) transparent transparent transparent;
}

/* HOVER */
.info-tooltip:hover .tooltip-content {
    opacity: 1;
}

.btn-nav:disabled {
    border-color: #ccc;
    color: #ccc;
    cursor: not-allowed;
}

.kiedy-formularz {
    font-size: 12px;
    color: red;
    margin-top: 10px;
    text-align: center;
}

.month-section h3 {
    font-size: 14px;
    color: var(--primary-brown);
}

.month-section h3 small {
    font-weight: normal;
    opacity: 0.7;
}

@media screen and (max-width: 997px) {


    .info-tooltip.active .tooltip-content {
        opacity: 1;
    }


}

.terms-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.terms-overlay.hidden {
    display: none;
}

.terms-modal {
    background: #fff;
    width: 90%;
    max-width: 600px;
    padding: 24px;
    box-sizing: border-box;
    border-radius: 4px;
}

.form-group input:disabled,
select:disabled {
    cursor: not-allowed;
}

.terms-modal h2 {
    margin-top: 0;
    color: #66250B;
    text-align: center;
    font-family: "Trirong";
    font-size: 32px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    margin: 0px;
}

@media screen and (max-width: 997px) {
    .terms-content {
        max-height: 300px;
    }

}

.terms-content {
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

#accept-terms {
    width: 100%;
    height: 48px;
    border: 1px solid var(--primary-brown);
    background-color: var(--primary-brown);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    opacity: 0.5;
}

#accept-terms:disabled {
    cursor: not-allowed;
}

#accept-terms:enabled {
    opacity: 1;
}

body.modal-open {
    overflow: hidden;
}

.open-terms-btn {
    background: none;
    border: none;
    color: white;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.terms-text>* {
    color: #1E1E1E;
    font-family: Poppins;
    font-style: normal;
    line-height: normal;
}

/* kontener przycisków */
.treatments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* pojedynczy przycisk */
.treatment-btn {
    background-color: transparent;
    border: 1px solid var(--primary-brown);
    color: var(--primary-brown);
    padding: 6px 10px;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* hover (opcjonalne, delikatne) */
.treatment-btn:hover {
    background-color: rgba(102, 37, 11, 0.08);
}

/* AKTYWNY */
.treatment-btn.active {
    background-color: var(--primary-brown);
    color: #fff;
}

.thank-you-title {
    color: #66250B;
    text-align: center;
    font-family: Trirong;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}

.thank-you-desc {
    color: #1E1E1E;
    text-align: center;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.thank-you-desc.help {
    font-size: 13px;
    font-style: italic;
}

.thank-you-whole-div {
    padding: 48px 32px 64px 32px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 16px 0 rgba(57, 33, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 580px;
}

.thank-you-whole-div>div {
    display: flex;
    justify-content: center;
}

.form-group.error input,
.form-group.error select {
    border-color: #c0392b;
}

.error-msg {
    color: #c0392b;
    font-size: 11px;
    min-height: 14px;
}

.disabled-email {
    display: none !important;
}

.scroll-to-form {
    border: 1px solid #FFF;
    color: #FFF;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 32px;
}

.important-things {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 50%;
}

.important-title {
    color: #FFF;
    text-align: center;
    font-family: Poppins;
    font-size: 23px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.important-things ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* wyszukiwarka */
.suggestions-list {
    position: absolute;
    z-index: 1000;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    /* Ukryta domyślnie */
    top: 75px;
    font-size: 13px;
}

.suggestions-list li {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    color: #1e1e1e;
}

.suggestions-list li:hover {
    background-color: #f0f0f0;
}

@media screen and (max-width:997px) {

    .opis-na-czym-polega,
    .important-things {
        width: 100%;
    }

    .opis-na-czym-polega ul,
    .important-things ul {
        text-align: start;
    }

    .thank-you-whole-div {
        width: 85%;
    }
    .hero-sections{
        padding: 0 16px;
    }
}

.math-captcha img {
  vertical-align: middle;
  width: 32px;
  height: 32px;
}
