/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-primary: #ffffff;
    --bg-secondary: #fdfdfd;
    --text-primary: #111111;
    --text-secondary: #5f5f5f;
    --text-muted: #9f9f9f;
    
    /* Pastels & Accents */
    --accent-sand: #faf6f0;
    --accent-sand-hover: #f3ede2;
    --accent-sage: #f0f4f1;
    --accent-sage-hover: #e2ebe4;
    --accent-warning-bg: #fff5f5;
    --accent-warning-border: #fcd2d2;
    --accent-warning-text: #b82b2b;
    --accent-whatsapp: #25d366;
    --accent-whatsapp-hover: #20ba5a;
    
    /* Borders & Outlines */
    --border-light: #ececec;
    --border-dark: #111111;
    --border-hover: #cccccc;
    --error-color: #e03131;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.01);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.04);
    
    /* Layout Spacing */
    --container-width: 540px; /* Ultra-slim layout to keep form inputs fully visible on mobile */
    --container-wide-width: 680px;
    
    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 15px;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px;
    padding-left: 20px;
    max-width: var(--container-width);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

p {
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--accent-sand);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    padding: 24px 0 20px 0;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-primary);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-logo-img {
    height: 84px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.header-logo-img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   PROGRESS BAR INDICATOR
   ========================================================================== */
.progress-bar-container {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 90;
    max-width: var(--container-width);
    margin: 0 auto;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#step-counter {
    color: var(--text-primary);
}

#step-name {
    font-weight: 800;
    color: var(--text-secondary);
}

.progress-track {
    width: 100%;
    height: 4px;
    background-color: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    width: 25%;
    height: 100%;
    background-color: var(--border-dark);
    border-radius: var(--radius-full);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   WIZARD STEPS MANAGEMENT
   ========================================================================== */
.wizard-container {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.wizard-step {
    display: none; /* Hide inactive steps */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 24px 0 60px 0;
    width: 100%;
}

.wizard-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   WIZARD STEP 1: HERO & CRITERIA
   ========================================================================== */
.hero-section {
    text-align: center;
    padding-bottom: 24px;
}

.main-title {
    font-size: 30px;
    margin-bottom: 12px;
}

.main-title .highlight {
    font-weight: 300;
    display: block;
    color: var(--text-secondary);
}

.subheading {
    font-size: 15px;
    max-width: 440px;
    margin: 0 auto;
}

/* Criteria List (Ultra-clean and compact) */
.criteria-container {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 30px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 24px;
}

.section-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.section-header h2 {
    font-size: 22px;
    margin-top: 4px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.criteria-item {
    display: flex;
    gap: 16px;
    background-color: var(--accent-sand);
    padding: 16px;
    border-radius: var(--radius-md);
}

.criteria-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1.2;
}

.criteria-content h3 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.criteria-content p {
    font-size: 12.5px;
    line-height: 1.5;
}

/* ==========================================================================
   BUTTONS & STEP NAVIGATION
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    outline: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--border-dark);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: #2b2b2b;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background-color: var(--accent-sand);
    border-color: var(--border-hover);
}

.btn-whatsapp {
    background-color: var(--accent-whatsapp);
    color: #ffffff;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: var(--accent-whatsapp-hover);
}

.whatsapp-logo {
    width: 16px;
    height: 16px;
}

.btn-submit {
    background-color: var(--border-dark);
    color: var(--bg-primary);
    font-size: 14.5px;
    letter-spacing: 0.02em;
}

/* Navigation layout for Wizard footer */
.step-nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    justify-content: space-between;
}

.step-nav-buttons .btn {
    flex: 1;
}

.single-btn-nav {
    display: block;
}

.single-btn-nav .btn {
    width: 100%;
}

/* ==========================================================================
   WIZARD STEP 2: WARNING / MANDATORY GATE
   ========================================================================== */
.warning-box {
    background-color: var(--accent-warning-bg);
    border: 1px solid var(--accent-warning-border);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.warning-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.warning-icon {
    font-size: 20px;
}

.warning-header h2 {
    font-size: 15px;
    color: var(--accent-warning-text);
    letter-spacing: 0.05em;
}

.warning-box h3 {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.warning-scroll-area {
    text-align: left;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 16px;
}

.warning-body {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.warning-body:last-child {
    margin-bottom: 0;
}

.highlight-warning {
    font-weight: 800;
    color: var(--accent-warning-text);
}

.font-italic {
    font-style: italic;
}

.warning-action {
    margin-top: 10px;
}

.agreement-wrapper {
    background-color: var(--accent-warning-bg);
    border: 1px solid var(--accent-warning-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 20px;
}

.agreement-checkbox-field {
    display: flex;
}

.lg-agreement {
    align-items: flex-start;
}

.lg-agreement .custom-checkbox {
    margin-top: 2px;
}

.agreement-text {
    line-height: 1.4;
    font-size: 12.5px;
    color: var(--text-primary);
}

.agreement-text strong {
    font-weight: 800;
}

/* ==========================================================================
   FORM CONTROLS (TIGHT & COMPACT FOR MOBILE SCREEN MATCHING)
   ========================================================================== */
.form-group-wrapper {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    margin-bottom: 20px;
}

.form-section-title {
    font-size: 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.form-section-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: -10px;
    margin-bottom: 16px;
}

.form-field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-field:last-child {
    margin-bottom: 0;
}

.form-field label {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.form-field label .required {
    color: var(--error-color);
}

.form-field label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 11px;
}

.field-desc-helper {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: -4px;
    margin-bottom: 8px;
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

input:hover, select:hover {
    border-color: var(--border-hover);
}

input:focus, select:focus {
    border-color: var(--border-dark);
    box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.04);
}

.helper-text {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Custom Select styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a5d63' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}

/* ==========================================================================
   CHECKBOX & RADIO CUSTOMIZATION
   ========================================================================== */
.radio-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 2px;
}

.radio-label, .checkbox-label {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 500 !important;
    user-select: none;
}

.radio-label input, .checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-radio, .custom-checkbox {
    display: inline-block;
    height: 18px;
    width: 18px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    margin-right: 8px;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.custom-radio {
    border-radius: 50%;
}

.custom-checkbox {
    border-radius: var(--radius-sm);
}

.radio-label:hover input ~ .custom-radio,
.checkbox-label:hover input ~ .custom-checkbox {
    border-color: var(--border-hover);
}

.radio-label input:checked ~ .custom-radio,
.checkbox-label input:checked ~ .custom-checkbox {
    background-color: var(--border-dark);
    border-color: var(--border-dark);
}

.custom-radio::after, .custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked ~ .custom-radio::after,
.checkbox-label input:checked ~ .custom-checkbox::after {
    display: block;
}

.radio-label .custom-radio::after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
}

.checkbox-label .custom-checkbox::after {
    top: 4px;
    left: 7px;
    width: 4px;
    height: 7px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 6px;
}

/* Dynamic Portfolio Links */
.dynamic-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.dynamic-link-row:last-child {
    margin-bottom: 0;
}

.btn-remove-link {
    background: none;
    border: 1px solid var(--border-light);
    color: var(--error-color);
    width: 38px;
    height: 42px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.btn-remove-link:hover {
    background-color: var(--accent-warning-bg);
    border-color: var(--error-color);
}

.btn-add-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px dashed var(--border-dark);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    align-self: flex-start;
    transition: var(--transition-smooth);
}

.btn-add-link:hover {
    background-color: var(--accent-sand);
}

/* ==========================================================================
   PRICING & TIMELINE PER DELIVERABLE
   ========================================================================== */
.pricing-item-card {
    background-color: var(--accent-sand);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.pricing-item-card:last-child {
    margin-bottom: 0;
}

.pricing-item-header h4 {
    font-size: 13.5px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pricing-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-inputs-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .pricing-inputs-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.deliverables-card {
    background-color: var(--accent-sand);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-light);
}

.deliverables-card h4 {
    font-size: 13px;
    margin-bottom: 8px;
}

.deliverables-card ul {
    list-style: none;
}

.deliverables-card li {
    font-size: 12.5px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.deliverables-card li:last-child {
    margin-bottom: 0;
}

.list-bullet-icon {
    width: 12px;
    height: 12px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.price-field-container {
    margin-bottom: 0;
}

.input-currency-wrapper {
    display: flex;
}

.currency-label {
    display: flex;
    align-items: center;
    background-color: var(--accent-sand);
    border: 1px solid var(--border-light);
    border-right: none;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
}

.input-currency-wrapper input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* ==========================================================================
   SECURITY & ERRORS
   ========================================================================== */
.captcha-wrapper {
    background-color: var(--accent-sand);
}

.error-msg {
    font-size: 11.5px;
    color: var(--error-color);
    margin-top: 4px;
    display: none;
    font-weight: 700;
}

.field-invalid input,
.field-invalid select {
    border-color: var(--error-color) !important;
    background-color: rgba(224, 49, 49, 0.01);
}

.field-invalid .error-msg {
    display: block;
}

.field-invalid .custom-checkbox,
.field-invalid .custom-radio {
    border-color: var(--error-color) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    padding: 24px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
    margin-top: auto;
}

.main-footer p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-note {
    margin-top: 4px;
}

/* ==========================================================================
   MODAL / POPUP
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 30px 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(12px);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-card {
    transform: translateY(0);
}

.success-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    color: #2b7a42;
}

.success-icon svg {
    width: 24px;
    height: 24px;
}

.modal-card h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.modal-body p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s ease-in-out infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   NO-WIZARD SINGLE PAGE OVERRIDES (FOR REVIEW)
   ========================================================================== */
body.no-wizard .wizard-step {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    padding: 24px 0 !important;
}

body.no-wizard .progress-bar-container {
    display: none !important;
}

body.no-wizard .step-nav-buttons:not(.final-submit-nav) {
    display: none !important;
}

body.no-wizard .final-submit-nav {
    justify-content: center !important;
}

body.no-wizard .final-submit-nav .btn-secondary {
    display: none !important;
}

body.no-wizard .final-submit-nav .btn-submit {
    max-width: 320px;
    margin: 0 auto;
}
