/* ============================================================
   CRÊPERIE CATERING - Formular v4.0
   WPCode: CSS-Snippet
   ============================================================ */

.cre-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    padding: 16px;
    color: #1e293b;
}
.cre-wrapper * { box-sizing: border-box; }

/* ===== CARD ===== */
.cre-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

/* ===== PROGRESS ===== */
.cre-progress { display: none; margin-bottom: 36px; }
.cre-card.step-2 .cre-progress,
.cre-card.step-3 .cre-progress,
.cre-card.step-4 .cre-progress { display: block; }

.cre-progress-track {
    height: 4px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}
.cre-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 33%;
}
.cre-card.step-3 .cre-progress-fill { width: 66%; }
.cre-card.step-4 .cre-progress-fill { width: 100%; }

.cre-progress-steps { display: flex; justify-content: space-between; }
.cre-progress-step {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
}
.cre-progress-step.active { color: #d97706; font-weight: 600; }
.cre-progress-step.done   { color: #22c55e; }

.cre-step-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e2e8f0;
    flex-shrink: 0;
    transition: background 0.3s;
}
.cre-progress-step.active .cre-step-dot { background: #d97706; }
.cre-progress-step.done   .cre-step-dot { background: #22c55e; }

/* ===== STEPS ===== */
.cre-step { display: none; }
.cre-step.active { display: block; animation: creFadeIn 0.3s ease; }
@keyframes creFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== STEP 1: HERO ===== */
.cre-hero { text-align: center; }

.cre-brand {
    font-size: 14px;
    font-weight: 700;
    color: #d97706;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
}
.cre-hero-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.2;
}
.cre-hero-sub {
    font-size: 16px;
    color: #64748b;
    margin: 0 0 28px 0;
}

.cre-hero-card {
    background: #fffbeb;
    border: 2px solid #f59e0b;
    border-radius: 18px;
    padding: 20px 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    margin: 0 auto 28px auto;
    max-width: 480px;
    animation: creGlow 2.5s ease-in-out infinite;
}
@keyframes creGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.3); }
    50%       { box-shadow: 0 0 0 6px rgba(245,158,11,0.12); }
}
.cre-hero-card:hover {
    transform: translateY(-3px);
    border-color: #d97706;
    box-shadow: 0 8px 28px rgba(217,119,6,0.2);
}
.cre-hero-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cre-ice-icon {
    font-size: 44px;
    flex-shrink: 0;
    animation: creShake 0.2s ease-in-out infinite;
}
@keyframes creShake {
    0%, 100% { transform: rotate(0deg); }
    25%       { transform: rotate(-4deg); }
    75%       { transform: rotate(4deg); }
}
.cre-hero-card-text {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cre-hero-card-text strong {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}
.cre-hero-card-text span {
    font-size: 13px;
    color: #64748b;
}
.cre-hero-arrow {
    font-size: 20px;
    color: #d97706;
    font-weight: 700;
    flex-shrink: 0;
}

.cre-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
}
.cre-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
}
.cre-check { color: #22c55e; font-weight: 700; }

/* ===== STEP HEADER ===== */
.cre-step-header { margin-bottom: 24px; }
.cre-step-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 4px 0;
    color: #0f172a;
}
.cre-step-header p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}
.cre-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== OCCASION TILES ===== */
.cre-tile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.cre-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}
.cre-tile input { position: absolute; opacity: 0; pointer-events: none; }
.cre-tile:hover { border-color: #f59e0b; background: #fffdf7; }
.cre-tile:has(input:checked) {
    border-color: #d97706;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    box-shadow: 0 2px 10px rgba(217,119,6,0.15);
}
.cre-tile-icon { font-size: 28px; }
.cre-tile-label {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}
.cre-tile:has(input:checked) .cre-tile-label { color: #92400e; }

/* ===== CONTACT TILES ===== */
.cre-contact-row { display: flex; gap: 10px; }
.cre-contact-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    position: relative;
}
.cre-contact-tile input { position: absolute; opacity: 0; pointer-events: none; }
.cre-contact-tile:hover { border-color: #f59e0b; background: #fffdf7; }
.cre-contact-tile:has(input:checked) {
    border-color: #d97706;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.cre-contact-icon { font-size: 22px; }

/* ===== FORM FIELDS ===== */
.cre-field-group { margin-bottom: 22px; }
.cre-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 22px;
}
.cre-full { grid-column: 1 / -1; }
.cre-field { display: flex; flex-direction: column; gap: 6px; }

.cre-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    display: block;
}
.cre-optional { font-weight: 400; color: #94a3b8; font-size: 12px; }

.cre-field label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.cre-field input,
.cre-field select,
.cre-field textarea {
    padding: 13px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    width: 100%;
}
.cre-field input:focus,
.cre-field select:focus,
.cre-field textarea:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 4px rgba(217,119,6,0.1);
}
.cre-field input.error,
.cre-field select.error { border-color: #ef4444; }
.cre-field textarea { resize: vertical; min-height: 90px; }

/* ===== PRIVACY ===== */
.cre-privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    margin-top: 20px;
}
.cre-privacy input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #d97706;
    flex-shrink: 0;
}
.cre-privacy a { color: #d97706; text-decoration: underline; }

/* ===== ERROR ===== */
.cre-error {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    padding: 11px 15px;
    border-radius: 8px;
    margin-bottom: 16px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: creFadeIn 0.25s ease;
}

/* ===== NAVIGATION ===== */
.cre-nav { display: flex; gap: 12px; margin-top: 28px; }
.cre-card.step-1 .cre-nav { display: none; }

.cre-btn-back {
    padding: 14px 22px;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}
.cre-btn-back:hover { background: #e2e8f0; }

.cre-btn-next {
    flex: 1;
    padding: 15px 24px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}
.cre-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217,119,6,0.45);
}
.cre-btn-next:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 580px) {
    .cre-card { padding: 28px 18px; border-radius: 20px; }
    .cre-hero-title { font-size: 24px; }
    .cre-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .cre-service-grid { grid-template-columns: repeat(2, 1fr); }
    .cre-grid-2 { grid-template-columns: 1fr; }
    .cre-contact-row { flex-direction: column; }
    .cre-nav { flex-direction: column-reverse; }
    .cre-progress-step span { display: none; }
}