/* ==========================================================================
   Blažek Stick & Caps - Absolventský textil & Kalkulátor
   Identita: Červená #D40000, Tmavá #1A1A1A, Světlá #F4F4F4
   ========================================================================== */

.absolventi-main {
    background-color: #f9f9f9;
    padding: 40px 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1a1a1a;
}

.container {
    max-width: 960px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 35px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 15px;
}

/* Informační rámečky */
.notice-box {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notice-box.info-notice {
    background-color: #e8f4fd;
    border-left: 4px solid #0056b3;
    color: #004085;
    display: inline-block;
    text-align: left;
}

.notice-box.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.notice-box.embroidery-info {
    background-color: #f0f7f4;
    border-left: 4px solid #28a745;
    color: #155724;
}

.notice-box.embroidery-info p {
    margin: 5px 0 0 0;
    font-size: 0.88rem;
}

/* Formulářové sekce */
.form-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 30px;
    border: 1px solid #e2e2e2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-section h2 {
    font-size: 1.35rem;
    color: #d40000;
    border-bottom: 2px solid #d40000;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Karty produktů */
.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
}

.checkbox-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-header input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: #d40000;
}

.price-from-tag {
    margin-left: auto;
    background: #d40000;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.product-desc {
    margin: 6px 0 10px 32px;
    color: #666;
}

/* Náhledové fotky textilu */
.product-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
    background: #f4f4f4;
    padding: 15px;
    border-radius: 6px;
}

.prod-thumb {
    width: 120px;
    height: 180px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.supplier-link {
    color: #0056b3;
    font-size: 0.88rem;
    text-decoration: none;
    font-weight: 600;
}

.supplier-link:hover {
    text-decoration: underline;
}

.btn-sizechart {
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-sizechart:hover {
    background: #d40000;
}

.cut-block {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    padding: 18px;
    border-radius: 6px;
    margin-top: 15px;
}

.cut-block h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #1a1a1a;
}

/* Velikostní mřížka */
.size-table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    padding: 8px 5px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.size-label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.size-price {
    font-size: 0.75rem;
    color: #d40000;
    font-weight: bold;
    margin-bottom: 4px;
}

.size-input {
    width: 100%;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-weight: bold;
}

/* Vzory */
.motif-type-selection {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.radio-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    background: #f4f4f4;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.radio-card input[type="radio"] {
    accent-color: #d40000;
    margin-right: 10px;
}

.motifs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.motif-card input[type="radio"] { display: none; }

.motif-box {
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.motif-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 210 / 297;
    object-fit: contain;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 3px;
}

.motif-box span {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
}

.motif-card input[type="radio"]:checked + .motif-box {
    border-color: #d40000;
    box-shadow: 0 0 0 2px #d40000;
    background-color: #fff8f8;
}

/* Rámeček živého kalkulátoru */
.price-calculator-box {
    background: #1a1a1a;
    color: #ffffff;
    border: none;
}

.price-calculator-box h2 {
    color: #ffffff;
    border-bottom-color: #d40000;
}

.price-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    text-align: center;
}

.full-width-stat {
    grid-column: 1 / -1;
    border: 2px solid #d40000;
}

.price-stat {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 6px;
}

.price-stat span {
    display: block;
    font-size: 0.85rem;
    color: #bbb;
    margin-bottom: 5px;
}

.price-stat strong {
    font-size: 1.3rem;
    color: #fff;
    display: block;
}

.price-stat small {
    display: block;
    color: #888;
    font-size: 0.8rem;
    margin-top: 4px;
}

.price-stat.highlight strong {
    color: #ff4d4d;
    font-size: 1.8rem;
}

/* Inputs & Form Controls */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 0.95rem; }

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.form-control-file {
    display: block;
    width: 100%;
    padding: 8px;
    background: #f4f4f4;
    border: 1px dashed #bbb;
    border-radius: 5px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }

/* Tlačítko odeslání */
.btn-submit {
    background-color: #d40000;
    color: #ffffff;
    border: none;
    padding: 16px 30px;
    font-size: 1.15rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
}

.btn-submit:hover { background-color: #990000; }

/* Modal pop-up window */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.modal-content {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 15px; top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #d40000;
}

.modal-img-wrap {
    text-align: center;
    margin-top: 10px;
}

.modal-img-wrap img {
    max-width: 100%;
    max-height: 70vh;
    height: auto;
    border-radius: 4px;
}

/* Banner Čepice na míru */
.caps-promo-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 30px;
    border-left: 6px solid #d40000;
}

.caps-promo-content h2 { color: #ffffff; margin-top: 0; font-size: 1.4rem; }
.caps-promo-content p { color: #cccccc; font-size: 0.98rem; margin-bottom: 20px; }

.btn-promo {
    display: inline-block;
    background-color: #d40000;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    font-weight: bold;
    border-radius: 5px;
}

.btn-zoom-motif {
    background-color: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.85rem;
    color: #333333;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    width: 100%;
    text-align: center;
}

.btn-zoom-motif:hover {
    background-color: #f5f5f5;
    border-color: #999999;
    color: #000000;
}

/* reCAPTCHA - odsazení a zarovnání */
.g-recaptcha {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

/* Ošetření přetečení na velmi úzkých mobilních displejích */
@media (max-width: 360px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center center;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .price-summary-grid { grid-template-columns: 1fr; }
    .product-meta-row { flex-direction: column; }
    .prod-thumb { width: 100%; height: auto; max-width: 200px; }
}