.tdf-wrap { margin: 24px 0; }
.tdf-open {
    background: #1A2B4A; color: #fff; border: 2px solid #D4AF37;
    padding: 16px 32px; font-size: 18px; font-weight: 700; border-radius: 10px; cursor: pointer;
}
.tdf-open:hover { background: #D4AF37; color: #1A2B4A; }
.tdf-note { margin-top: 10px; color: #444; }
.tdf-success {
    background: #e8f7ee; border: 1px solid #2e9e62; color: #14532d;
    padding: 16px 20px; border-radius: 10px; margin-bottom: 16px; font-size: 16px;
}
.tdf-modal {
    position: fixed; inset: 0; background: rgba(10, 18, 32, 0.72);
    z-index: 99999; overflow-y: auto; padding: 24px 12px;
}
.tdf-box {
    background: #fff; max-width: 760px; margin: 0 auto; border-radius: 14px;
    padding: 28px 26px 32px; position: relative; box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.tdf-close {
    position: absolute; top: 10px; right: 14px; background: none; border: none;
    font-size: 30px; line-height: 1; cursor: pointer; color: #1A2B4A;
}
.tdf-title { margin: 0 40px 4px 0; color: #1A2B4A; font-size: 24px; }
.tdf-sub { margin: 0 0 18px; color: #555; }
.tdf-form .tdf-sec {
    border: 1px solid #d9dee8; border-radius: 10px; padding: 18px; margin: 0 0 18px;
}
.tdf-form legend { font-weight: 700; color: #1A2B4A; padding: 0 8px; font-size: 16px; }
.tdf-form label { display: block; margin: 0 0 9px; font-weight: 600; color: #222; font-size: 14px; }
.tdf-form input[type="text"], .tdf-form input[type="email"], .tdf-form select, .tdf-form textarea {
    display: block; width: 100%; margin-top: 5px; padding: 10px 12px;
    border: 1px solid #b9c2d4; border-radius: 8px; font-size: 15px; font-weight: 400; background: #fff;
}
.tdf-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tdf-card {
    border: 2px solid #d9dee8; border-radius: 10px; padding: 12px; cursor: pointer; margin: 0 !important;
}
.tdf-card input { margin-right: 8px; }
.tdf-card:has(input:checked) { border-color: #D4AF37; background: #fdf6e0; }
.tdf-product { border: 1px dashed #b9c2d4; border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #f8fafd; }
.tdf-product h4 { margin: 0 0 10px; color: #1A2B4A; }
.tdf-add {
    background: #fff; color: #1A2B4A; border: 2px solid #1A2B4A; border-radius: 8px;
    padding: 10px 18px; font-weight: 700; cursor: pointer;
}
.tdf-add:hover { background: #1A2B4A; color: #fff; }
.tdf-remove { background: none; border: none; color: #b3261e; font-weight: 700; cursor: pointer; padding: 4px 0; }
.tdf-submit {
    width: 100%; background: #D4AF37; color: #1A2B4A; border: none; border-radius: 10px;
    padding: 16px; font-size: 18px; font-weight: 800; cursor: pointer;
}
.tdf-submit:hover { background: #1A2B4A; color: #fff; }
.tdf-help { color: #555; font-size: 14px; }
.tdf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .tdf-cards { grid-template-columns: 1fr; } }

/* ===== v1.2 PRO DESIGN — navy/gold premium, animated ===== */
.tdf-open {
    position: relative; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, #1A2B4A 0%, #27406e 55%, #1A2B4A 100%);
    border: 2px solid #D4AF37; border-radius: 14px;
    padding: 20px 44px; font-size: 20px; letter-spacing: 0.3px;
    box-shadow: 0 12px 30px rgba(26, 43, 74, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: tdfPulse 2.6s ease-in-out infinite;
}
.tdf-open:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px rgba(26,43,74,0.45); background: linear-gradient(135deg, #D4AF37, #b8912a); color: #1A2B4A; }
.tdf-open::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg); animation: tdfShine 3.2s ease-in-out infinite; z-index: 1;
}
@keyframes tdfShine { 0% { left: -80%; } 55% { left: 130%; } 100% { left: 130%; } }
@keyframes tdfPulse {
    0%, 100% { box-shadow: 0 12px 30px rgba(26,43,74,0.35), 0 0 0 0 rgba(212,175,55,0.45); }
    50% { box-shadow: 0 12px 30px rgba(26,43,74,0.35), 0 0 0 12px rgba(212,175,55,0); }
}
.tdf-modal { backdrop-filter: blur(6px); background: rgba(10, 18, 32, 0.78); animation: tdfFade 0.25s ease; }
@keyframes tdfFade { from { opacity: 0; } to { opacity: 1; } }
.tdf-box {
    border-radius: 18px; padding: 0 26px 32px; overflow: hidden;
    border-top: 4px solid #D4AF37;
    animation: tdfUp 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes tdfUp { from { opacity: 0; transform: translateY(34px) scale(0.985); } to { opacity: 1; transform: none; } }
.tdf-head {
    margin: 0 -26px 20px; padding: 22px 26px 16px;
    background: linear-gradient(135deg, #1A2B4A, #22365e 60%, #1A2B4A);
    border-bottom: 3px solid #D4AF37;
}
.tdf-head .tdf-title { color: #fff; margin: 0 40px 4px 0; }
.tdf-head .tdf-sub { color: #cfd9ec; margin: 0 0 14px; }
.tdf-progress { height: 8px; background: rgba(255,255,255,0.18); border-radius: 99px; overflow: hidden; }
.tdf-bar {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #D4AF37, #f2d57e);
    border-radius: 99px; transition: width 0.4s ease;
}
.tdf-pct { color: #D4AF37; font-size: 12.5px; font-weight: 700; margin: 6px 0 0; letter-spacing: 0.4px; }
.tdf-close { color: #fff; z-index: 2; top: 14px; }
.tdf-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
.tdf-card {
    display: flex; align-items: center; gap: 10px;
    border-radius: 12px; padding: 14px; background: #fbfcfe;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.tdf-card:hover { transform: translateY(-2px); border-color: #D4AF37; box-shadow: 0 8px 18px rgba(26,43,74,0.12); }
.tdf-card .tdf-ic { font-size: 22px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2)); }
.tdf-card:has(input:checked) {
    background: linear-gradient(135deg, #fdf6e0, #f7e7b8);
    border-color: #D4AF37; box-shadow: 0 8px 20px rgba(212,175,55,0.35);
}
.tdf-form .tdf-sec { border-radius: 14px; box-shadow: 0 2px 10px rgba(26,43,74,0.05); }
.tdf-sec.tdf-in { animation: tdfUp 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tdf-form legend {
    background: #1A2B4A; color: #fff; border-radius: 99px; padding: 5px 16px !important;
    border-bottom: 2px solid #D4AF37;
}
.tdf-form input[type="text"]:focus, .tdf-form input[type="email"]:focus, .tdf-form select:focus, .tdf-form textarea:focus {
    outline: none; border-color: #D4AF37; box-shadow: 0 0 0 3px rgba(212,175,55,0.25);
}
.tdf-product { background: linear-gradient(180deg, #f8fafd, #eef3fa); border: 1px solid #c9d4e6; border-radius: 14px; }
.tdf-preview { display: block; max-width: 180px; max-height: 180px; border-radius: 10px; margin: 4px 0 12px; border: 2px solid #D4AF37; object-fit: cover; }
.tdf-add { border-style: dashed; transition: all 0.2s ease; }
.tdf-add:hover { border-style: solid; transform: translateY(-1px); }
.tdf-submit {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #D4AF37, #c39a2b);
    box-shadow: 0 10px 24px rgba(212,175,55,0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tdf-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(212,175,55,0.5); background: linear-gradient(135deg, #1A2B4A, #27406e); }
@media (max-width: 640px) { .tdf-open { width: 100%; padding: 18px 20px; font-size: 18px; } }

/* ===== v1.3 Visual color selector ===== */
.tdf-colorblock { margin: 0 0 12px; }
.tdf-colorlabel { display: block; font-weight: 600; color: #222; font-size: 14px; margin-bottom: 8px; }
.tdf-colorspot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
.tdf-swatch {
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
    border: 2px solid #d5dbe8; box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease; position: relative; padding: 0;
}
.tdf-swatch:hover { transform: scale(1.15); }
.tdf-swatch.sel { box-shadow: 0 0 0 3px #D4AF37, 0 2px 6px rgba(0,0,0,0.2); transform: scale(1.12); }
.tdf-swatch.sel::after {
    content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.tdf-pickwrap { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; font-size: 13px; font-weight: 600; color: #444; }
.tdf-colorpick { width: 38px; height: 30px; border: 1px solid #b9c2d4; border-radius: 8px; padding: 2px; background: #fff; cursor: pointer; }
.tdf-coloradd { background: #1A2B4A; color: #fff; border: 1px solid #D4AF37; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; }
.tdf-coloradd:hover { background: #D4AF37; color: #1A2B4A; }
.tdf-colorvalue { background: #f4f6fb !important; font-weight: 600; }

/* ===== v1.4 Hero panel + steps + richer cards ===== */
.tdf-hero {
    background: linear-gradient(135deg, #1A2B4A 0%, #27406e 55%, #16263f 100%);
    border: 2px solid #D4AF37; border-radius: 20px;
    padding: 40px 34px; text-align: center; color: #fff;
    box-shadow: 0 20px 45px rgba(26,43,74,0.35);
}
.tdf-hero-badge {
    display: inline-block; color: #D4AF37; border: 1px solid #D4AF37; border-radius: 99px;
    padding: 5px 16px; font-size: 12px; font-weight: 800; letter-spacing: 2px; margin-bottom: 16px;
}
.tdf-hero-title { color: #fff; font-size: 32px; margin: 0 0 10px; }
.tdf-hero-sub { color: #cfd9ec; max-width: 560px; margin: 0 auto 18px; font-size: 16px; }
.tdf-hero-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.tdf-hero-chips span {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(212,175,55,0.55); color: #f2d57e;
    border-radius: 99px; padding: 6px 14px; font-size: 13.5px; font-weight: 700;
}
.tdf-hero .tdf-note { color: #aebbd6; }
.tdf-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tdf-steps span {
    background: rgba(255,255,255,0.12); color: #cfd9ec; border-radius: 99px;
    padding: 4px 12px; font-size: 12px; font-weight: 700;
}
.tdf-steps span.on { background: #D4AF37; color: #1A2B4A; }
.tdf-cardtext { display: flex; flex-direction: column; }
.tdf-cardtitle { font-weight: 700; }
.tdf-desc { font-weight: 400; font-size: 12.5px; color: #667; margin-top: 2px; }
.tdf-prod-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tdf-done {
    background: linear-gradient(135deg, #D4AF37, #c39a2b); color: #1A2B4A; border: none;
    border-radius: 8px; padding: 10px 18px; font-weight: 800; cursor: pointer;
    box-shadow: 0 6px 16px rgba(212,175,55,0.35); transition: transform 0.2s ease;
}
.tdf-done:hover { transform: translateY(-1px); }
.tdf-prod-summary {
    background: #e8f7ee; border: 1px solid #2e9e62; color: #14532d; border-radius: 10px;
    padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 700;
}
.tdf-prod-edit { background: none; border: none; color: #1A2B4A; font-weight: 800; cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) { .tdf-hero { padding: 28px 18px; } .tdf-hero-title { font-size: 25px; } }

/* ===== v1.5 Multi-step wizard ===== */
.tdf-form fieldset[hidden] { display: none !important; }
.tdf-form fieldset[data-wiz="off"] { display: none !important; }
.tdf-nav { display: flex; gap: 12px; margin-top: 6px; }
.tdf-back {
    background: #fff; color: #1A2B4A; border: 2px solid #1A2B4A; border-radius: 10px;
    padding: 14px 22px; font-size: 16px; font-weight: 700; cursor: pointer; flex: 0 0 auto;
}
.tdf-back:hover { background: #eef3fa; }
.tdf-next {
    background: linear-gradient(135deg, #1A2B4A, #27406e); color: #fff; border: 2px solid #D4AF37;
    border-radius: 10px; padding: 14px 22px; font-size: 16px; font-weight: 800; cursor: pointer; flex: 1;
    transition: transform 0.2s ease;
}
.tdf-next:hover { transform: translateY(-1px); }
.tdf-nav .tdf-submit { flex: 1; width: auto; }

/* ===== v1.6 Logo zones ===== */
.tdf-logozone {
    border: 2px dashed #D4AF37; background: #fffdf4; border-radius: 12px;
    padding: 14px; margin: 4px 0 14px; animation: tdfUp 0.3s ease;
}

.tdf-phonerow{display:flex;gap:8px}.tdf-phonerow select.tdf-kodpeyi{width:180px;flex:none}.tdf-phonerow input{flex:1;min-width:0}

.tdf-previews{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 8px}
.tdf-thumb{position:relative;display:inline-block}
.tdf-thumb img{width:76px;height:76px;object-fit:cover;border-radius:10px;border:2px solid #D4AF37;display:block}
.tdf-thumbx{position:absolute;top:-8px;right:-8px;width:22px;height:22px;border-radius:50%;background:#C62828;color:#fff;border:2px solid #fff;cursor:pointer;line-height:1;font-size:15px;padding:0;box-shadow:0 2px 6px rgba(0,0,0,.35)}

.tdf-wa{text-align:center;padding:30px 22px}
.tdf-wa-check{width:64px;height:64px;margin:0 auto 12px;border-radius:50%;background:#25D366;color:#fff;font-size:34px;line-height:64px;font-weight:700;box-shadow:0 8px 22px rgba(37,211,102,.4)}
.tdf-wa-btn{display:inline-block;margin-top:12px;background:#25D366;color:#fff;font-weight:700;font-size:17px;padding:14px 30px;border-radius:999px;text-decoration:none;box-shadow:0 8px 20px rgba(37,211,102,.35);animation:tdfPulse 1.8s infinite}
.tdf-wa-btn:hover{background:#1EBE5B;color:#fff}
.tdf-wa-note{font-size:13px;opacity:.75;margin-top:10px}

.tdf-form .tdf-clientgrid{display:grid;grid-template-columns:1fr 1fr;gap:2px 14px;align-items:start}
.tdf-form .tdf-clientgrid legend{grid-column:1/-1}
.tdf-form .tdf-clientgrid label{margin-bottom:6px}
.tdf-form .tdf-clientgrid .tdf-wide{grid-column:1/-1}
@media (max-width:640px){.tdf-form .tdf-clientgrid{grid-template-columns:1fr}}

.tdf-group{margin-bottom:20px}
.tdf-group:last-child{margin-bottom:4px}
.tdf-grouptitle{font-size:13px;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:#1A2B4A;border-bottom:2px solid #D4AF37;padding-bottom:6px;margin:0 0 10px}
