/*
 * modely/gate.css — vzhled formuláře „2D a 3D modely".
 * Jeden soubor pro obě podoby: samostatnou stránku /modely/ i popup (gate.js).
 * Barvy vytažené z webu: akcent #ff4850, tmavá #39434d, text #777.
 */

/* ---------- samostatná stránka ---------- */

body.mdl-page {
    margin: 0;
    padding: 0 16px 56px;
    background: #fff;
    color: #777;
    font: 400 15px/1.7 Poppins, "Segoe UI", Arial, sans-serif;
}

.mdl-wrap {
    max-width: 680px;
    margin: 0 auto;
}

.mdl-logo {
    display: inline-block;
    margin: 32px 0 24px;
}

.mdl-logo img {
    max-width: 190px;
    height: auto;
    display: block;
}

.mdl-page h1 {
    margin: 0 0 14px;
    color: #39434d;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 600;
}

.mdl-lead {
    margin: 0 0 32px;
    font-size: 16px;
}

.mdl-sub {
    margin: 0 0 12px;
    color: #39434d;
    font-size: 17px;
    font-weight: 600;
}

.mdl-list {
    margin: 0 0 36px;
    padding-left: 20px;
}

.mdl-list li {
    margin-bottom: 7px;
}

.mdl-list strong {
    color: #39434d;
}

.mdl-back {
    margin: 28px 0 0;
    font-size: 14px;
}

.mdl-back a,
.mdl-note a,
.mdl-done a {
    color: #ff4850;
}

/* ---------- kartička s formulářem ---------- */

.mdl-card {
    background: #fff;
    border: 1px solid #e3e6e9;
    border-radius: 6px;
    padding: 28px;
}

.mdl-field {
    margin-bottom: 16px;
}

.mdl-field label,
.mdl-consent span {
    display: block;
    margin-bottom: 6px;
    color: #39434d;
    font-size: 14px;
    font-weight: 500;
}

.mdl-req {
    color: #ff4850;
}

.mdl-opt {
    color: #9aa1a8;
    font-weight: 400;
}

.mdl-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid #d8dce0;
    border-radius: 3px;
    background: #fff;
    color: #39434d;
    font: inherit;
    font-size: 15px;
}

.mdl-field input:focus,
.mdl-consent input:focus,
.mdl-submit:focus {
    outline: 2px solid #ff4850;
    outline-offset: 2px;
}

.mdl-bad input {
    border-color: #ff4850;
    background: #fff7f7;
}

.mdl-err {
    margin: 6px 0 0;
    color: #d92e36;
    font-size: 13px;
}

.mdl-alert {
    margin: 0 0 18px;
    padding: 11px 14px;
    border-radius: 3px;
    background: #fff1f1;
    border: 1px solid #ffc9cb;
    color: #b3242b;
    font-size: 14px;
}

.mdl-consent {
    margin: 20px 0 22px;
}

.mdl-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.mdl-consent input {
    margin: 3px 0 0;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    accent-color: #ff4850;
}

.mdl-consent span {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
    color: #777;
}

.mdl-consent.mdl-bad span {
    color: #b3242b;
}

.mdl-submit {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border: 0;
    border-radius: 3px;
    background: #ff4850;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.mdl-submit:hover {
    background: #e93f47;
}

.mdl-submit[disabled] {
    opacity: .6;
    cursor: default;
}

.mdl-note {
    margin: 16px 0 0;
    color: #9aa1a8;
    font-size: 12.5px;
    line-height: 1.6;
}

/* past na roboty — pro člověka neviditelná, pro čtečku skrytá */
.mdl-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- poděkování ---------- */

.mdl-done {
    text-align: center;
    padding: 8px 0;
}

.mdl-done-mark {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #4cbb6c;
    color: #fff;
    font-size: 24px;
    line-height: 46px;
}

.mdl-done h2 {
    margin: 0 0 10px;
    color: #39434d;
    font-size: 19px;
    font-weight: 600;
}

.mdl-done p {
    margin: 0;
    font-size: 14.5px;
}

/* ---------- popup ---------- */

.mdl-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    background: rgba(35, 41, 47, .62);
    font: 400 15px/1.7 Poppins, "Segoe UI", Arial, sans-serif;
    color: #777;
    -webkit-overflow-scrolling: touch;
}

.mdl-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: auto;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.mdl-modal .mdl-card {
    border: 0;
    padding: 30px 28px 28px;
}

.mdl-modal-head {
    padding: 26px 28px 0;
}

.mdl-modal-head h2 {
    margin: 0 0 6px;
    padding-right: 28px;
    color: #39434d;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.mdl-modal-head p {
    margin: 0;
    font-size: 14px;
}

.mdl-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    color: #9aa1a8;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.mdl-close:hover {
    color: #39434d;
}

.mdl-loading {
    padding: 44px 28px;
    text-align: center;
    color: #9aa1a8;
    font-size: 14px;
}

@media (max-width: 480px) {
    .mdl-page h1 { font-size: 24px; }
    .mdl-card { padding: 22px 18px; }
    .mdl-modal .mdl-card { padding: 24px 18px; }
    .mdl-modal-head { padding: 22px 18px 0; }
}
