: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: #191640;
text-align: center;
font-family: Poppins;
font-size: 23px;
font-style: normal;
font-weight: 800;
line-height: 120%; /* 27.6px */
}

.formMetamorfozy form {
display: flex;
width: 580px;
padding: 0 16px;
flex-direction: column;
justify-content: center;
align-items: center;
border-radius: 16px;
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
}

.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: flex-start;
gap: 4px;
align-self: stretch;
}

.formMetamorfozy label {
color: #191640;
font-family: Poppins;
font-size: 13px;
font-style: normal;
font-weight: 400;
line-height: normal;
}
.form-title span {
    display: block;
    color: #191640;
font-family: Poppins;
font-size: 23px;
font-style: normal;
font-weight: 600;
line-height: 120%;
}
.formMetamorfozy label span a {
    text-decoration: underline;
    color: var(--text-gray);
}

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

.formMetamorfozy input {
border-radius: 16px;
border: 1px solid #E3E3E3;
background: #FFF;
display: flex;
height: 48px;
padding: 5px 16px;
align-items: center;
gap: 10px;
align-self: stretch;
color: rgba(25, 22, 64, 0.50);
font-family: Poppins;
font-size: 16px;
font-style: normal;
font-weight: 400;
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!important;
    padding-bottom: 48px;
}

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

.agreement-item input {
    display: none;
}

/* linki w zgodach w kolorze przycisków */
.formMetamorfozy .agreement-item a {
    color: #CF5432;
    text-decoration: underline;
}

/* checkbox */
.checkbox-custom {
    width: 16px;
    height: 16px;
    aspect-ratio: 1 / 1;
    border-radius: 2px;
    border: 1.5px solid #CF5432;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ✓ SVG ptaszek */
.checkbox-custom::after {
    content: '';
    width: 8px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='6' viewBox='0 0 8 6' fill='none'%3E%3Cpath d='M7.837 1.56417L3.41028 5.84392C3.30685 5.94386 3.1666 6 3.02036 6C2.87413 6 2.73387 5.94386 2.63044 5.84392L0.161265 3.44406C0.0580001 3.34407 0 3.20855 0 3.06725C0 2.92595 0.0580001 2.79042 0.161265 2.69043L0.850785 2.02381C0.954166 1.92427 1.09412 1.86839 1.24002 1.86839C1.38592 1.86839 1.52587 1.92427 1.62925 2.02381L3.03415 3.34106L6.37005 0.155578C6.47344 0.0559455 6.61347 0 6.75946 0C6.90544 0 7.04547 0.0559455 7.14886 0.155578L7.83666 0.806875C7.88838 0.85643 7.92945 0.915397 7.95748 0.980373C7.98552 1.04535 7.99997 1.11505 8 1.18545C8.00003 1.25585 7.98564 1.32556 7.95767 1.39056C7.92969 1.45556 7.88868 1.51457 7.837 1.56417Z' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0;
}

/* checked */
.agreement-item input:checked+.checkbox-custom {
    background-color: #CF5432;
    border-color: #CF5432;
}

.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: #191640;
    text-align: center;
    font-family: Poppins;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    padding-bottom:12px;
}
.thank-you-logo {
    margin-top: 72px;
}

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

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

.thank-you-logo {
    padding: 24px 0 0;
}

.thank-you-whole-div {
display: flex;
width: 580px;
padding: 56px 16px;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 24px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.25);
}
.thank-you-desc-wrapper {
    display: flex;
flex-direction: column;
align-items: center;
gap: 48px;
align-self: stretch;
}
.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;
    }

    .hero-sections {
        width: 100%;
    }

    .formMetamorfozy {
        width: 100%;
    }

    .formMetamorfozy form {
        width: 100%;
    }

}

@media screen and (max-width: 600px) {
    .file-uploads-row {
        flex-direction: column !important;
    }

    .file-upload-section {
        width: 100%;
    }
}

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

/* file upload buttons */
.formMetamorfozy .file-uploads-row {
    flex-direction: row;
    gap: 16px;
}

.file-upload-section {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.file-upload-section label {
    text-align:left;
}
.file-upload-trigger {
 display: flex;
padding: 14px 16px;
justify-content: center;
align-items: center;
gap: 8px;
align-self: stretch;
    width: 100%;
border-radius: 16px;
border: 1px solid #CF5432;
    background: transparent;
color: #CF5432;
text-align: center;
font-family: Poppins;
font-size: 13px;
font-style: normal;
font-weight: 500;
line-height: 150%; /* 19.5px */
cursor: pointer;
}

.file-selected-display {
display: flex;
padding: 14px 16px;
justify-content: space-between;
align-items: center;
align-self: stretch;
border-radius: 16px;
border: 1px solid #CF5432;
background: #CF5432;
color: #FFF;
text-align: center;
font-family: Poppins;
font-size: 13px;
font-style: normal;
font-weight: 500;
line-height: 150%; /* 19.5px */
}

.file-selected-display span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

.file-remove-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

@media screen and (max-width: 480px) {
    .file-uploads-row {
        flex-direction: column;
    }
    .file-upload-section {
        width: 100%;
    }
}
