/* ── iSea Web Design Pro — Frontend Styles ─────────────── */

/* Variables */
:root {
    --isea-primary:    #0055a5;
    --isea-accent:     #ff6b00;
    --isea-success:    #28a745;
    --isea-danger:     #dc3545;
    --isea-light:      #f4f7fb;
    --isea-border:     #dde3ed;
    --isea-text:       #2d3748;
    --isea-muted:      #6b7a99;
    --isea-radius:     10px;
    --isea-shadow:     0 2px 12px rgba(0,85,165,0.08);
}

/* ── Wrap ───────────────────────────────────────────────── */
.isea-order-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--isea-text);
    margin: 24px 0 8px;
}

/* ── Section ────────────────────────────────────────────── */
.isea-section {
    background: #fff;
    border: 1px solid var(--isea-border);
    border-radius: var(--isea-radius);
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: var(--isea-shadow);
}

.isea-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--isea-primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--isea-light);
}

/* ── Delivery Banner ────────────────────────────────────── */
.isea-delivery-banner {
    background: linear-gradient(135deg, #e8f4ff, #f0faff);
    border-color: #b3d7f5;
    font-size: 14px;
    text-align: center;
    padding: 14px 20px;
}
.isea-clock { font-size: 18px; margin-right: 6px; }

/* ── Page Options ───────────────────────────────────────── */
.isea-page-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.isea-page-option {
    cursor: pointer;
    flex: 1;
    min-width: 100px;
}
.isea-page-option input { display: none; }
.isea-page-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border: 2px solid var(--isea-border);
    border-radius: 8px;
    text-align: center;
    transition: all .2s;
    cursor: pointer;
    background: #fff;
}
.isea-page-label strong { font-size: 15px; color: var(--isea-text); }
.isea-page-label em { font-size: 12px; color: var(--isea-accent); font-style: normal; margin-top: 4px; }
.isea-page-label .isea-included { color: var(--isea-success); }
.isea-page-option input:checked + .isea-page-label {
    border-color: var(--isea-primary);
    background: #e8f1fb;
    box-shadow: 0 0 0 3px rgba(0,85,165,0.12);
}
.isea-popular .isea-page-label::before {
    content: '⭐ Most Popular';
    font-size: 10px;
    font-weight: 700;
    color: var(--isea-accent);
    margin-bottom: 4px;
    letter-spacing: .3px;
}

/* ── Fields Grid ────────────────────────────────────────── */
.isea-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.isea-field { display: flex; flex-direction: column; }
.isea-full-width { grid-column: 1 / -1; }
.isea-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--isea-text);
    margin-bottom: 5px;
}
.isea-field input[type=text],
.isea-field input[type=email],
.isea-field input[type=url],
.isea-field select,
.isea-field textarea {
    border: 1.5px solid var(--isea-border);
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--isea-text);
    background: #fafcff;
    transition: border-color .2s, box-shadow .2s;
    width: 100%;
    box-sizing: border-box;
}
.isea-field input:focus,
.isea-field select:focus,
.isea-field textarea:focus {
    border-color: var(--isea-primary);
    box-shadow: 0 0 0 3px rgba(0,85,165,0.1);
    outline: none;
}
.isea-field small { font-size: 11px; color: var(--isea-muted); margin-top: 4px; }
.isea-field input[type=file] {
    padding: 6px;
    background: var(--isea-light);
    border-style: dashed;
}
.isea-required { color: var(--isea-danger); }

/* ── Radio Options ──────────────────────────────────────── */
.isea-radio-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.isea-radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 2px solid var(--isea-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all .2s;
    font-size: 14px;
}
.isea-radio-option:hover { border-color: var(--isea-primary); background: #f0f6ff; }
.isea-radio-option input[type=radio] { accent-color: var(--isea-primary); width: 16px; height: 16px; }

/* ── Hosting Panel ──────────────────────────────────────── */
.isea-hosting-panel {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--isea-border);
}
.isea-info-box {
    background: #fffbea;
    border: 1px solid #f0d060;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
}
.isea-hosting-note { font-size: 13px; color: var(--isea-muted); margin: 0 0 12px; }
.isea-hosting-packages { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.isea-hosting-pkg {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}
.isea-hosting-pkg input { display: none; }
.isea-hosting-pkg span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 12px;
    border: 2px solid var(--isea-border);
    border-radius: 8px;
    text-align: center;
    transition: all .2s;
    background: #fff;
}
.isea-hosting-pkg span strong { font-size: 14px; }
.isea-hosting-pkg span em { font-size: 11px; color: var(--isea-muted); font-style: normal; }
.isea-pkg-price { color: var(--isea-accent); font-size: 14px !important; }
.isea-hosting-pkg input:checked + span,
.isea-hosting-pkg.isea-pkg-selected span {
    border-color: var(--isea-primary);
    background: #e8f1fb;
}
.isea-popular-pkg span::before {
    content: '⭐ Recommended';
    font-size: 10px;
    font-weight: 700;
    color: var(--isea-accent);
}
.isea-mt { margin-top: 14px; }

/* ── Domain Check ───────────────────────────────────────── */
.isea-domain-check-row { display: flex; gap: 8px; align-items: stretch; }
.isea-domain-check-row input { flex: 1; }
.isea-domain-result { margin-top: 8px; font-size: 13px; font-weight: 600; min-height: 22px; }
.isea-domain-available { color: var(--isea-success); }
.isea-domain-taken     { color: var(--isea-danger); }
.isea-domain-checking  { color: var(--isea-muted); }
.isea-domain-error     { color: var(--isea-danger); }

/* ── Add-Ons ────────────────────────────────────────────── */
.isea-addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.isea-addon { cursor: pointer; }
.isea-addon input { display: none; }
.isea-addon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 2px solid var(--isea-border);
    border-radius: 10px;
    text-align: center;
    transition: all .2s;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
}
.isea-addon-inner strong { font-size: 14px; margin-top: 6px; }
.isea-addon-inner em { font-size: 11px; color: var(--isea-muted); font-style: normal; margin: 3px 0; }
.isea-addon-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--isea-accent);
    margin-top: auto;
    padding-top: 8px;
}
.isea-addon-icon { width: 44px; height: 44px; object-fit: contain; }
.isea-addon:hover .isea-addon-inner { border-color: var(--isea-primary); background: #f4f8ff; }
.isea-addon input:checked + .isea-addon-inner,
.isea-addon.isea-addon-selected .isea-addon-inner {
    border-color: var(--isea-primary);
    background: #e8f1fb;
    box-shadow: 0 0 0 3px rgba(0,85,165,0.12);
}

/* ── Notes textarea ─────────────────────────────────────── */
#isea_additional_notes {
    width: 100%;
    border: 1.5px solid var(--isea-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    background: #fafcff;
}

/* ── Price Summary ──────────────────────────────────────── */
.isea-price-summary {
    background: linear-gradient(135deg, #001f4d, #003380);
    border-radius: var(--isea-radius);
    padding: 20px 24px;
    margin-bottom: 16px;
    color: #fff;
}
.isea-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
}
.isea-price-total {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #fff !important;
    border-bottom: none !important;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid rgba(255,255,255,0.25);
}
.isea-price-flash { animation: isea-flash .35s ease; }
@keyframes isea-flash {
    0%   { transform: scale(1); color: #fff; }
    50%  { transform: scale(1.1); color: #ffcc44; }
    100% { transform: scale(1); color: #fff; }
}
.isea-revision-note {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 12px 0 0;
    text-align: center;
}

/* ── Buttons ────────────────────────────────────────────── */
.isea-btn-secondary {
    background: var(--isea-primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.isea-btn-secondary:hover { background: #003d80; }
.isea-btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--isea-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    margin-top: 12px;
    transition: background .2s, transform .1s;
}
.isea-btn-primary:hover { background: #e55a00; transform: translateY(-1px); }

/* ── Progress Tracker (frontend) ────────────────────────── */
.isea-tracker-wrap {
    background: #fff;
    border: 1px solid var(--isea-border);
    border-radius: var(--isea-radius);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--isea-shadow);
}
.isea-tracker-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--isea-primary);
    margin: 0 0 20px;
}
.isea-tracker {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0;
}
.isea-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    max-width: 90px;
    text-align: center;
}
.isea-step-icon { font-size: 22px; }
.isea-step-label { font-size: 11px; font-weight: 600; color: var(--isea-muted); line-height: 1.3; }
.isea-step-active .isea-step-icon { animation: isea-pulse 1.5s infinite; }
.isea-step-active .isea-step-label { color: var(--isea-primary); }
.isea-step-done .isea-step-label { color: var(--isea-success); }
@keyframes isea-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.18); }
}
.isea-step-connector {
    flex: 1;
    height: 3px;
    background: var(--isea-border);
    align-self: center;
    margin: 0 4px;
    margin-bottom: 20px;
    border-radius: 2px;
    min-width: 16px;
}
.isea-connector-done { background: var(--isea-success); }
.isea-tracker-note {
    background: #f0f8ff;
    border-left: 4px solid var(--isea-primary);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    margin-top: 20px;
}
.isea-tracker-updated { font-size: 12px; color: var(--isea-muted); margin: 10px 0 0; }

/* ── Content Form ───────────────────────────────────────── */
.isea-content-form-wrap {
    max-width: 760px;
    margin: 0 auto;
}
.isea-content-form-wrap h2 {
    font-size: 22px;
    color: var(--isea-primary);
    margin-bottom: 6px;
}
.isea-order-ref { font-size: 13px; color: var(--isea-muted); margin-bottom: 20px; }
.isea-cf-section {
    background: #fff;
    border: 1px solid var(--isea-border);
    border-radius: var(--isea-radius);
    padding: 20px;
    margin-bottom: 18px;
}
.isea-cf-section h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--isea-primary);
    margin: 0 0 14px;
}
.isea-success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 8px;
    padding: 16px 20px;
    font-size: 15px;
    margin-bottom: 20px;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .isea-fields-grid    { grid-template-columns: 1fr; }
    .isea-addons-grid    { grid-template-columns: 1fr; }
    .isea-hosting-packages { flex-direction: column; }
    .isea-page-options   { flex-wrap: wrap; }
    .isea-page-option    { min-width: 42%; }
    .isea-tracker        { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
    .isea-step           { min-width: 64px; }
    .isea-step-connector { min-width: 12px; }
}
