/* ===== GABIT CSS - UPORZĄDKOWANY ===== */

/* ===== RESET I PODSTAWOWE STYLE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    background-color: #ffffff;
    font-family: "Montserrat", sans-serif;
}

body {
    visibility: hidden;
    opacity: 0;
}

/* ===== HEADER I NAWIGACJA ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    min-height: 70px;
    padding: 0 15px;
    z-index: 1000;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.logo {
    height: 40px;
    transition: transform 0.5s ease-in-out;
}

.col {
    flex: 1;
}

.col-12.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== DROPDOWN JĘZYKOWY ===== */
.language-dropdown {
    display: flex;
    justify-content: flex-end;
    cursor: pointer;
    user-select: none;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 5px 9px;
    background: transparent;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.3s;
}

.language-option:not(.selected):hover {
    background-color: #293c5a;
}

.language-options {
    display: none;
    position: absolute;
    top: 100%;
    z-index: 100;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.language-dropdown.open .language-options {
    display: block;
    background-color: #1D293C;
}

.lang-flag {
    width: 30px;
    margin-right: 8px;
    vertical-align: middle;
}

.fa-chevron-down {
    margin-left: auto;
    color: #ffffff;
}

/* ===== GŁÓWNA TREŚĆ STRONY ===== */
main {
    padding: 20px;
    min-height: calc(100vh - 60px);
    text-align: center;
}

/* ===== SEKCJA INFORMACJI O PRODUKCIE ===== */
.product-info-section-main .section-title-main {
    font-size: clamp(16px, 6vw, 24px);
    font-weight: 700;
    color: #1D293C;
    margin-bottom: 10px;
    margin-top: 60px;
    white-space: nowrap;
}


.product-info-section-main h1 {
    font-size: 46px;
    font-weight: 800;
    color: #1D293C;
}

.product-image-main {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 45px auto;
    border-radius: 5px;
}

.product-info-section-main .custom-hr-main {
    border: none;
    border-top: 1px solid #1D293C;
    opacity: 1;
    width: 100%;
    margin: 20px 0;
}

/* ===== PRZYCISKI ROZWIJANE I ZAWARTOŚĆ ===== */
.toggle-button-main {
    font-size: 18px;
    font-weight: bold;
    color: #1D293C;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    transition: color 0.3s;
}

.toggle-button-main:hover,
.toggle-button-main:focus,
.toggle-button-main.active {
    color: #162c4e;
    outline: none;
}

.toggle-button-main i {
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 18px;
    color: #1D293C;
}

.toggle-button-main:hover i,
.toggle-button-main.active i {
    color: #00497e;
}

.toggle-button-main.active i {
    transform: rotate(180deg);
}

.hidden-main {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-out;
}

.content-main.active {
    max-height: 500px;
    overflow: auto;
    padding: 10px;
    box-sizing: border-box;
}

.content-main p {
    background-color: #f6f6f6;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin: 0;
}

.content-main p:hover {
    background-color: #f6f6f6;
}

.content-main p strong {
    display: block;
    margin-top: 5px;
    color: #1D293C;
}

/* ===== ZAŁĄCZNIKI ===== */
.attachment-item {
    display: flex;
    align-items: flex-start;
    margin-top: 10px;
}

.attachment-item i {
    font-size: 34px;
    color: #1D293C;
    margin-right: 10px;
}

.attachment-item .fa-file-alt {
    font-size: 40px;
    color: #1D293C;
    margin-right: 10px;
}

.attachment-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.attachment-name {
    font-size: 16px;
    color: #1D293C;
    text-decoration: none;
    display: block;
    text-align: left;
}

.attachment-name:hover {
    color: #00497e;
}

.attachment-size {
    font-size: 14px;
    color: #666;
    text-align: left;
}

/* ===== OPISY I PARAGRAFY ===== */
.description-paragraph {
    margin-bottom: 5px;
    text-align: justify;
    line-height: 1.45;
}

.description-paragraph:last-child {
    margin-bottom: 0;
}

.first-paragraph {
    margin-bottom: 5px;
}

.additional-paragraph {
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

/* ===== PRZYCISKI GŁÓWNE ===== */
.service-request-button-main {
    background-color: #1D293C;
    color: white;
    padding: 12px 24px;
    width: 100%;
    border: none;
    border-radius: 5px;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    white-space: nowrap;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.service-request-button-main:hover {
    background-color: #24334B;
}

.service-request-button-main:disabled {
    background-color: #6C757D !important;
    color: #FFF !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

.service-request-button-main:disabled:hover {
    background-color: #6C757D !important;
    transform: none !important;
}

.back-icon {
    display: none !important;
    font-size: 24px;
    color: #1D293C;
    cursor: pointer;
    margin-top: 70px;
}

/* ===== FORMULARZE ===== */
.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.form-header h2 {
    flex-grow: 1;
    text-align: center;
    margin-top: 70px;
    font-size: clamp(1.2rem, 4.5vw, 1.875rem);
    white-space: nowrap;
}

.form-header .back-button {
    background-color: #1D293C;
    color: white;
    padding: 10px 20px;
    margin-top: 60px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.form-header .back-button:hover {
    background-color: #24334B;
}

form.service-request-form {
    display: flex;
    flex-direction: column;
}

form.service-request-form label {
    margin-top: 10px;
    font-weight: normal;
    text-align: left;
}

form.service-request-form input[type="text"],
form.service-request-form input[type="email"],
form.service-request-form textarea {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form.service-request-form textarea {
    resize: vertical;
}

form.service-request-form button[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1D293C;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

form.service-request-form button[type="submit"]:hover {
    background-color: #24334B;
}

form.service-request-form input[data-has-content="true"]::placeholder,
form.service-request-form textarea[data-has-content="true"]::placeholder {
    color: transparent;
}

form.service-request-form p.service-note {
    margin-top: 20px;
    font-weight: 400;
    text-align: left;
}

/* ===== SELECT I UPLOAD PLIKÓW ===== */
select {
    margin-top: 5px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
    color: #333;
    width: 100%;
}

.custom-file-upload {
    display: inline-block;
    padding: 4px 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-file-input-group {
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.custom-file-input-group .file-label {
    font-size: 0.75em;
    text-align: left;
}

.custom-file-input-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.custom-file-input-group .custom-file-upload-button {
    padding: 6px 12px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    margin-top: 0px;
}

.custom-file-input-group .file-status {
    font-size: 0.9em;
    color: #666;
    white-space: nowrap;
    margin-left: 10px;
    text-align: left;
}

/* ===== KOMUNIKATY FORMULARZA ===== */
#formMessage {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Stan ładowania */
.form-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #1D293C;
    background-color: #F0F8FF;
    border: 1px solid #1D293C;
    padding: 15px 20px;
    border-radius: 8px;
    animation: pulse-background 2s ease-in-out infinite;
}

.form-loading span {
    font-size: 16px;
    font-weight: 600;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #E0E0E0;
    border-top: 3px solid #1D293C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Komunikat sukcesu */
.form-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #155724;
    background-color: #D4EDDA;
    border: 1px solid #C3E6CB;
    padding: 15px 20px;
    border-radius: 8px;
    animation: success-appear 0.5s ease-out;
}

.form-success i {
    font-size: 20px;
    color: #28A745;
}

.form-success span {
    font-size: 16px;
    font-weight: 600;
}

/* Komunikat błędu */
.form-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #721C24;
    background-color: #F8D7DA;
    border: 1px solid #F5C6CB;
    padding: 15px 20px;
    border-radius: 8px;
    animation: error-shake 0.5s ease-out;
}

.form-error i {
    font-size: 20px;
    color: #DC3545;
}

.form-error span {
    font-size: 16px;
    font-weight: 600;
}

/* ===== STOPKA ===== */
footer {
    background-image: linear-gradient(rgba(29, 41, 60, 0.8), rgba(29, 41, 60, 0.8)), url('../images/footer-image.png');
    background-position: center;
}

footer section:first-child {
    padding-left: 20px !important;
}

footer .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.footer-row-custom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
}

.footer-col-1,
.footer-col-2,
.footer-col-3,
.footer-col-4 {
    width: 100%;
}

.footer-col-4 {
    padding-bottom: 9px;
}

.footer-text {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.3;
    color: #ffffff;
}

.footer-text a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-text a:hover,
.footer-text a:focus {
    color: #aaf4ff !important;
}

.footer-text i {
    margin-right: 5px;
    width: 24px;
    text-align: center;
}

.footer-heading {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-align: left;
    padding-bottom: 8px;
    margin-left: 21px;
    margin-right: 20px;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
}

.footer-heading hr {
    width: 50px;
    background-color: #7c4dff;
    border: none;
    height: 2px;
    margin: 10px 0;
}

.footer-heading .arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-heading.collapsible.active .arrow-icon {
    transform: rotate(180deg);
}

.collapsible.active {
    color: #aaf4ff;
}

.content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    text-align: left;
    padding-left: 18px;
    padding-right: 5px;
}

.content.active {
    max-height: 500px;
}

.responsive-text {
    display: block;
    margin-top: 5px;
}

dl,
ol,
ul {
    margin-top: 0;
    margin-bottom: 0 !important;
}

.product-icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    /* Białe ikony */
}

/* ===== MEDIA SPOŁECZNOŚCIOWE ===== */
.me-4 {
    margin-right: 0;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.fa-facebook-f,
.fa-instagram,
.fa-linkedin,
.fa-youtube {
    font-size: 30px;
}

footer section:first-child a:last-child {
    margin-right: 4px !important;
}
/* .product-icon-png {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: middle;

} */
/* ===== ANIMACJE ===== */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-background {

    0%,
    100% {
        background-color: #F0F8FF;
        box-shadow: 0 0 0 rgba(29, 41, 60, 0.1);
    }

    50% {
        background-color: #F8FBFF;
        box-shadow: 0 0 15px rgba(29, 41, 60, 0.15);
    }
}

@keyframes success-appear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes error-shake {

    0%,
    20%,
    40%,
    60%,
    80% {
        transform: translateX(-3px);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===== UKRYJ NIEPOTRZEBNE ELEMENTY ===== */
.show-more-link {
    display: none !important;
}

/* ===== MEDIA QUERIES - TABLET ===== */
@media (max-width: 1200px) and (min-width: 768px) {
    .content-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MEDIA QUERIES - MOBILE ===== */
@media (max-width: 768px) {

    /* Header mobile */
    header {
        min-height: 60px;
        padding: 0;
    }

    .logo {
        height: 38px;
        text-align: center;
    }

    .col-4:first-child {
        display: none;
    }

    .language-dropdown {
        width: 100%;
    }

    .responsive-text {
        display: none;
    }

    /* Tekst i paragrafy mobile */
    .description-paragraph {
        margin-bottom: 5px;
    }

    /* Przyciski mobile */
    .service-request-button-main {
        width: 100%;
        padding: 14px;
        font-size: clamp(0.8rem, 4vw, 0.95rem);
    }

    .back-button {
        display: none;
    }

    .back-icon {
        display: none;
    }

    .toggle-button-main:not(.active) {
        color: #1D293C;
    }

    /* Formularze mobile */
    .form-header h2 {
        margin-top: 50px;
        font-size: clamp(1rem, 5.5vw, 1.375rem);
    }

    .form-header i {
        margin-top: 65px;
    }

    select {
        padding: 12px 55px 12px 12px;
        font-size: 18px;
        background-color: #f8f9fa;
        border-color: #aaa;
        background-position: right 25px center !important;
        background-size: 22px 22px;
    }

    /* Grid mobile */
    .content-main {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-text {
        font-size: 14.5px;
    }

    /* Media społecznościowe mobile */
    .d-flex.justify-content-between>div:last-child {
        flex: 1;
        justify-content: center;
        display: flex;
        gap: 10px;
        margin-right: 24px;
    }

    .d-flex.justify-content-between {
        justify-content: center !important;
    }

    .fa-instagram,
    .fa-linkedin,
    .fa-youtube {
        margin-left: 20px;
    }

    footer section:first-child a:last-child {
        margin-right: 28px !important;
    }

    /* Komunikaty formularza mobile */
    .form-loading,
    .form-success,
    .form-error {
        padding: 12px 15px;
        font-size: 14px;
        gap: 10px;
    }

    .loading-spinner {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .form-success i,
    .form-error i {
        font-size: 18px;
    }

    .form-success span,
    .form-error span {
        font-size: 14px;
    }
}

/* ===== MEDIA QUERIES - BARDZO MAŁE EKRANY ===== */
@media (max-width: 307px) {

    .fa-instagram,
    .fa-linkedin,
    .fa-youtube {
        margin-left: 5px;
    }
}