/* --- WYCENA.CSS --- */

/* 1. OGÓLNE USTAWIENIA STRONY */
body {
    background-color: #201d1a;
    color: #eae2c5;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.valuation-page {
    width: 100%;
    min-height: 100vh;
    padding-top: 80px; /* Miejsce na fixed header */
}

/* 2. SEKCJA HERO (NAGŁÓWEK ZE ZDJĘCIEM) */
.valuation-hero {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('kontakt.jpg'); 
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #baa256;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'myFirstFont', serif;
    font-size: clamp(60px, 15vw, 150px);
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1;
}

/* 3. WSTĘP I WYBÓR KATEGORII */
.valuation-intro {
    background-color: #312b27;
    padding: 40px 20px;
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    color: #eae2c5;
    border-bottom: 1px solid #404040;
}

.category-selection {
    padding: 60px 20px;
    background-color: #201d1a;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.header-line {
    width: 100%;
    height: 1px;
    background-color: #baa256;
    position: absolute;
    top: 50%;
    z-index: 1;
}

.header-title {
    display: inline-block;
    background-color: #201d1a;
    padding: 0 25px;
    position: relative;
    z-index: 2;
    color: #eae2c5;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: "FreightBigProMedium-Regular", serif;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.selection-card {
    display: block;
    text-decoration: none;
    text-align: center;
    transition: transform 0.3s ease;
}

.selection-card:hover { transform: translateY(-10px); }

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 2px solid #404040;
    transition: border-color 0.3s ease;
    background-color: #000;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.selection-card:hover .card-image { border-color: #baa256; }
.selection-card:hover img { transform: scale(1.1); }

.card-label {
    display: block;
    margin-top: 20px;
    font-size: 20px;
    color: #eae2c5;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.selection-card:hover .card-label { color: #baa256; }

/* 4. FORMULARZE */
.valuation-form-section {
    padding: 40px 20px 80px;
    background-color: #201d1a;
    animation: slideDown 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

.form-block { 
    background-color: #312b27; 
    padding: 40px; 
    margin: 0 auto 30px; 
    max-width: 900px; 
    border: 1px solid #404040; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
}

.form-block h4 { 
    color: #baa256; 
    text-align: center; 
    text-transform: uppercase; 
    margin-bottom: 30px; 
    font-size: 20px; 
    letter-spacing: 2px; 
    border-bottom: 1px solid #404040; 
    padding-bottom: 15px; 
    font-weight: normal;
}

.form-block label {
    display: block; 
    margin-bottom: 8px; 
    color: #baa256; 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    text-align: left;
}

/* PODTYTUŁY SEKCJI */
.section-divider {
    text-align: center; 
    font-size: 18px; 
    color: #baa256; 
    margin: 30px 0 15px;
    border-bottom: 1px dashed #404040; 
    padding-bottom: 5px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* UKRYTE SEKCJE Z ANIMACJĄ */
.hidden-section {
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    animation: slideDown 0.3s ease-out;
}

/* === OPCJE WYBORU Z OBRAZKAMI === */
.radio-grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px; 
    margin-top: 15px; 
    text-align: center; 
}

.radio-grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
    margin-top: 15px; 
    text-align: center; 
}

.radio-img {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; position: relative; border: 1px solid #404040; padding: 15px 10px;
    background-color: rgba(32, 29, 26, 0.5); transition: all 0.3s ease;
}
.radio-img:hover { border-color: #baa256; background-color: rgba(186, 162, 86, 0.05); }

/* Ukrycie standardowego radio buttona */
.radio-img input { position: absolute; opacity: 0; width: 0; height: 0; }

.radio-img img { 
    width: 100%; height: 80px; object-fit: contain; 
    margin-bottom: 10px; filter: grayscale(0.4); 
    transition: filter 0.3s, transform 0.3s; 
}

/* Stan zaznaczenia */
.radio-img:has(input:checked) { 
    border-color: #baa256; 
    box-shadow: 0 0 10px rgba(186, 162, 86, 0.15); 
    background-color: rgba(186, 162, 86, 0.05); 
}
.radio-img input:checked + img { filter: grayscale(0); transform: scale(1.05); }
.radio-img input:checked ~ span { color: #baa256; font-weight: bold; }
.radio-img span { font-size: 14px; color: #9f9c9a; text-align: center; transition: color 0.3s; }

.hidden-input {
    display: block; 
    width: 100%; 
    max-width: 400px; 
    margin: 20px auto 0; 
    animation: slideDown 0.3s ease-out;
}

/* === RADIO TEKSTOWE === */
.small-grid { 
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-top: 15px; 
    text-align: center; 
}

.radio-text { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #404040; 
    padding: 12px 5px; 
    background: #201d1a; 
    color: #9f9c9a; 
    transition: all 0.3s; 
    position: relative;
    text-align: center;
    font-size: 15px;
}
.radio-text:hover { 
    border-color: #baa256; 
    background-color: rgba(186, 162, 86, 0.05); 
}
.radio-text:has(input:checked) { 
    border-color: #baa256; 
    background: #2a2520; 
    color: #baa256; 
    font-weight: bold; 
    box-shadow: 0 0 5px rgba(186, 162, 86, 0.2);
}
.radio-text input { position: absolute; opacity: 0; width: 0; height: 0; }


/* === SEKCJA WYMIARÓW === */
.dims-container {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #404040;
    animation: slideDown 0.3s ease-out;
    text-align: center; 
}

.dim-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; 
}

.dim-input {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center; 
}

.dim-input label {
    margin-bottom: 0 !important;
    font-size: 20px !important;
    color: #baa256;
}

.input-with-unit {
    position: relative;
    width: 140px; 
    display: flex;
    align-items: center;
}

.input-with-unit input[type="number"], .input-with-unit input[type="text"] {
    width: 100% !important;
    padding-right: 45px !important; 
    text-align: center;
    margin-bottom: 0 !important;
    background-color: rgba(32, 29, 26, 0.6);
    border: 1px solid #5a5a5a;
    color: #eae2c5;
    border-radius: 0; 
}

.input-with-unit input[type="number"]::-webkit-outer-spin-button,
.input-with-unit input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.input-with-unit input[type="number"] { -moz-appearance: textfield; }

.input-with-unit .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #baa256; 
    font-size: 16px;
    font-weight: normal;
    pointer-events: none;
}

/* === TABELE DANYCH === */
.data-table { 
    width: 100%; 
    max-width: 700px; 
    margin: 20px auto; 
    border-collapse: collapse; 
}
.data-table td { 
    padding: 15px 10px; 
    border-bottom: 1px solid #404040; 
    color: #eae2c5; 
    vertical-align: middle; 
    font-size: 18px; 
}
.data-table tr:last-child td { border-bottom: none; }
.data-table input { 
    text-align: center; 
    margin-bottom: 0 !important; 
    background-color: rgba(32, 29, 26, 0.8) !important; 
}

/* OBRAZEK POMOCNICZY */
.img-guide { 
    text-align: center; 
    margin-bottom: 30px; 
}
.img-guide img { 
    max-width: 100%; 
    height: auto; 
    border: 1px solid #404040; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
}

/* PRZYCISKI WYBORU (RADIO BUTTONS) */
.options-group { text-align: center; margin-top: 30px; }
.options-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    margin-top: 15px; 
}

.btn-radio { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    padding: 15px 30px; 
    min-width: 120px; 
    font-weight: 500; 
    color: #9f9c9a; 
    font-size: 16px; 
    background-color: rgba(32, 29, 26, 0.6); 
    border: 1px solid #404040; 
    transition: all 0.3s ease; 
    text-align: center; 
}
.btn-radio:hover { 
    border-color: #baa256; 
    background-color: rgba(186, 162, 86, 0.05); 
}
.btn-radio:has(input:checked) { 
    border-color: #baa256; 
    background-color: rgba(186, 162, 86, 0.1); 
    color: #baa256; 
    font-weight: bold; 
    box-shadow: 0 0 10px rgba(186, 162, 86, 0.1); 
}
.btn-radio input { appearance: none; -webkit-appearance: none; margin: 0; }

/* UPLOAD */
.file-upload-wrapper { text-align: center; margin-bottom: 25px; }
.file-label { 
    display: inline-block; padding: 15px 30px; 
    border: 2px dashed #baa256; cursor: pointer; color: #baa256; 
    transition: 0.3s; margin-bottom: 5px; text-transform: none; letter-spacing: normal;
}
.file-label:hover { background: rgba(186,162,86, 0.1); }
.file-input { display: none; }

/* PODGLĄD PLIKÓW */
.file-preview-zone { 
    margin-top: 15px; display: flex; flex-direction: column; gap: 10px; 
    max-width: 600px; margin-left: auto; margin-right: auto; 
}
.file-preview-item { 
    display: flex; align-items: center; justify-content: space-between; 
    background-color: rgba(32, 29, 26, 0.8); border: 1px solid #404040; 
    padding: 10px; transition: background-color 0.3s; 
}
.file-preview-item:hover { background-color: rgba(186, 162, 86, 0.1); border-color: #baa256; }

.file-info { display: flex; align-items: center; gap: 15px; overflow: hidden; }
.file-thumbnail { width: 50px; height: 50px; object-fit: cover; border: 1px solid #baa256; background-color: #000; }
.file-name { font-size: 14px; color: #eae2c5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

.remove-file-btn { 
    background: transparent; border: none; color: #ff4d4d; 
    font-size: 24px; line-height: 1; cursor: pointer; padding: 0 10px; 
    transition: transform 0.2s, color 0.2s; 
}
.remove-file-btn:hover { color: #ff0000; transform: scale(1.2); }

/* Inputy tekstowe */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.valuation-form input[type="text"], 
.valuation-form input[type="tel"], 
.valuation-form input[type="email"], 
.valuation-form input[type="number"],
.valuation-form textarea {
    width: 100%;
    background-color: rgba(32, 29, 26, 0.6);
    border: 1px solid #5a5a5a;
    color: #eae2c5;
    padding: 15px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.valuation-form input:focus, 
.valuation-form textarea:focus {
    outline: none; border-color: #baa256;
    background-color: rgba(32, 29, 26, 1);
    box-shadow: 0 0 10px rgba(186, 162, 86, 0.1);
}

.przyciskRamka { 
    display: table; margin: 40px auto 0; 
    border: 1px solid #baa256; padding: 6px; background-color: #201d1a; 
}

.disableButtonCSS {
    display: block; background-color: #baa256; color: #201d1a;
    border: 1px solid #baa256; padding: 15px 50px;
    font-size: 18px; font-family: 'Old Standard TT', serif;
    font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
    cursor: pointer; transition: all 0.3s ease;
}

.disableButtonCSS:hover { background-color: #d4bf70; border-color: #d4bf70; color: #000; }

/* === NOWA SEKCJA SEO === */
.seo-content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #dcdcdc; /* Jasny szary tekst */
    line-height: 1.6;
}

.seo-content-section h2 {
    font-family: 'FreightBigProMedium-Regular', serif; /* Spójność z nagłówkami */
    color: #baa256; /* Złoty Estica */
    font-size: 32px;
    margin-bottom: 20px;
    margin-top: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.seo-content-section h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 30px;
    font-weight: bold;
}

.seo-content-section p {
    margin-bottom: 15px;
    font-size: 16px;
}

.seo-content-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.seo-content-section li {
    margin-bottom: 10px;
    color: #eae2c5;
}

.seo-content-section strong {
    color: #baa256;
}

.seo-link {
    color: #baa256;
    text-decoration: underline;
    transition: color 0.3s;
}

.seo-link:hover {
    color: #fff;
}


@media screen and (max-width: 1200px) {
    .selection-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media screen and (max-width: 768px) {
    .valuation-page { padding-top: 60px; }
    .hero-title { font-size: 60px; }
    .header-title { font-size: 18px; padding: 0 15px; }
    .form-block { padding: 25px 15px; }
    .contact-grid { grid-template-columns: 1fr; gap: 15px; }
    .disableButtonCSS { width: 100%; text-align: center; }
    
    .radio-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .radio-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .small-grid { grid-template-columns: repeat(2, 1fr); }
    .dim-row { flex-direction: column; align-items: center; gap: 15px; }
    
    .seo-content-section { padding: 40px 20px; }
    .seo-content-section h2 { font-size: 24px; }
}