/* ===== TK Custom Order v1.1 ===== */

/* ─── Bannière catégorie (description visible) ─────────────────────── */
.tk-co-cat-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    border: 1px solid rgba(96,165,250,.3);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.tk-co-cat-banner__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(37,99,235,.18);
    border: 1px solid rgba(96,165,250,.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}
.tk-co-cat-banner__body { flex: 1; min-width: 0; }
.tk-co-cat-banner__title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 0 0 5px;
    line-height: 1.3;
}
.tk-co-cat-banner__desc {
    display: block;
    font-size: .87rem;
    color: #94a3b8;
    line-height: 1.55;
}
.tk-co-cat-banner__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff !important;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    border: none;
    border-radius: 7px;
    padding: 12px 20px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
    font-family: inherit;
}
.tk-co-cat-banner__btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
@media (max-width: 640px) {
    .tk-co-cat-banner { flex-direction: column; text-align: center; padding: 20px 18px; gap: 14px; }
    .tk-co-cat-banner__btn { width: 100%; justify-content: center; }
}

/* ─── Overlay popup ──────────────────────────────────────────────────── */
.tk-co-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.tk-co-overlay[hidden] { display: none; }

/* ─── Modal ──────────────────────────────────────────────────────────── */
.tk-co-modal {
    position: relative;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    width: 100%;
    max-width: 620px;
    max-height: 92vh;
    overflow-y: auto;
    animation: tk-modal-in .22s ease-out;
}
@keyframes tk-modal-in {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.tk-co-modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 14px 14px -14px 0;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    color: #64748b;
    transition: background .15s, color .15s;
    z-index: 2;
    flex-shrink: 0;
}
.tk-co-modal__close:hover { background: #e2e8f0; color: #0f172a; }
.tk-co-modal__body { padding: 28px 32px 32px; clear: both; }
.tk-co-modal__title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}
.tk-co-modal__intro {
    font-size: .92rem;
    color: #475569;
    margin: 0 0 24px;
    line-height: 1.6;
}
.tk-co-modal__success {
    text-align: center;
    padding: 40px 32px 48px;
}
.tk-co-modal__success svg { margin-bottom: 18px; }
.tk-co-modal__success h3 { font-size: 1.4rem; color: #0f172a; margin-bottom: 10px; }
.tk-co-modal__success p { font-size: .95rem; color: #475569; line-height: 1.6; }
@media (max-width: 500px) {
    .tk-co-modal__body { padding: 20px 18px 28px; }
}

/* ─── Formulaire (partagé popup + page standalone) ─────────────────── */
.tk-co-wrap { max-width: 680px; margin: 0 auto; padding: 8px 0 48px; }
.tk-co-intro {
    color: #475569;
    margin-bottom: 24px;
    font-size: .94em;
    line-height: 1.65;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 13px 17px;
}
.tk-co-field { margin-bottom: 18px; }
.tk-co-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: .92em;
    color: #1e293b;
}
.tk-co-req { color: #dc2626; font-weight: 700; }
.tk-co-opt { color: #94a3b8; font-size: .81em; font-weight: normal; }

.tk-co-field select,
.tk-co-field textarea,
.tk-co-field input[type="text"],
.tk-co-field input[type="email"],
.tk-co-field input[type="tel"],
.tk-co-field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: .92em;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    background: #fff;
    color: #0f172a;
    font-family: inherit;
}
.tk-co-field select:focus,
.tk-co-field textarea:focus,
.tk-co-field input:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}
.tk-co-field textarea { resize: vertical; min-height: 80px; }

.tk-co-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) {
    .tk-co-row2 { grid-template-columns: 1fr; gap: 0; }
}

.tk-co-budget-row { display: flex; align-items: center; gap: 10px; }
.tk-co-budget-row input { flex: 1; }
.tk-co-budget-unit { font-weight: 600; color: #64748b; font-size: .89em; white-space: nowrap; }

.tk-co-divider { border: none; border-top: 1.5px solid #e2e8f0; margin: 22px 0 20px; }

.tk-co-error {
    background: #fff0f0;
    border: 1px solid #fca5a5;
    border-radius: 7px;
    padding: 10px 13px;
    font-size: .88em;
    color: #dc2626;
    margin-bottom: 12px;
}
.tk-co-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 36px;
    background: #2563eb;
    color: #fff !important;
    font-size: .87rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    margin-top: 6px;
    font-family: inherit;
    gap: 8px;
}
.tk-co-submit:hover:not(:disabled) {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37,99,235,.28);
}
.tk-co-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Page standalone — succès */
.tk-co-success { text-align: center; padding: 50px 20px; }
.tk-co-success svg { margin-bottom: 18px; }
.tk-co-success h3 { font-size: 1.5rem; color: #0f172a; margin-bottom: 10px; }
.tk-co-success p { font-size: .96rem; color: #475569; max-width: 440px; margin: 0 auto; line-height: 1.65; }
