﻿/* ─── CUSTOM ORDER PAGE ─── */

/* Page header */
.co-header {
    padding: 56px 32px 48px;
    border-bottom: 0.5px solid #c9a84c22;
    background: linear-gradient(135deg, #0a0a0a 60%, #0f0d00);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.co-header-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 520px;
}

.co-title {
    font-family: "Playfair Display", serif;
    font-size: 52px;
    font-weight: 700;
    color: #f5f0e8;
    line-height: 1.1;
}

.co-subtitle {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
}

/* Steps */
.co-header-steps {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    align-self: center;
}

.co-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.co-step-num {
    font-family: "Playfair Display", serif;
    font-size: 22px;
    font-weight: 700;
    color: #c9a84c;
    line-height: 1;
}

.co-step-label {
    font-size: 10px;
    color: #555;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.co-step-divider {
    width: 32px;
    height: 0.5px;
    background: #c9a84c33;
    flex-shrink: 0;
    margin-bottom: 18px;
}

/* Layout: form + sidebar */
.co-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0;
    align-items: start;
    border-bottom: 0.5px solid #c9a84c11;
}

/* ─── FORM ─── */
.co-form-wrap {
    padding: 40px 32px;
    border-right: 0.5px solid #c9a84c11;
}

.co-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.co-fieldset {
    border: 0.5px solid #c9a84c22;
    border-radius: 2px;
    padding: 28px 24px;
    background: #0d0d0d;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.co-legend {
    font-family: "Playfair Display", serif;
    font-size: 16px;
    color: #f5f0e8;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
    margin-bottom: 4px;
}

.co-legend-num {
    width: 26px;
    height: 26px;
    background: #c9a84c;
    color: #0a0a0a;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Inter", sans-serif;
    flex-shrink: 0;
}

.co-legend-link {
    margin-left: auto;
    font-size: 11px;
    color: #c9a84c;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    border-bottom: 0.5px solid #c9a84c44;
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.co-legend-link:hover {
    border-color: #c9a84c;
}

.co-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.co-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.co-field label {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.req {
    color: #c9a84c;
}

.co-field input,
.co-field select,
.co-field textarea {
    background: #111;
    border: 0.5px solid #c9a84c22;
    border-radius: 2px;
    color: #f5f0e8;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.co-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a84c' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
    border-color: #c9a84c88;
    box-shadow: 0 0 0 3px #c9a84c0d;
}

.co-field input.invalid,
.co-field select.invalid,
.co-field textarea.invalid {
    border-color: #e6394688;
}

.co-field input::placeholder,
.co-field textarea::placeholder {
    color: #333;
}

.co-field textarea {
    resize: vertical;
    min-height: 90px;
}

.co-field-hint {
    font-size: 11px;
    color: #444;
    line-height: 1.5;
}

/* Measurements grid */
.co-meas-note {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
    margin-top: -8px;
}

.co-meas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* OR divider */
.co-field--or {
    gap: 0;
}

.co-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.co-or-divider::before,
.co-or-divider::after {
    content: "";
    flex: 1;
    height: 0.5px;
    background: #c9a84c22;
}

/* Size pills */
.co-size-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.co-size-pill {
    cursor: pointer;
}

.co-size-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.co-size-pill span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 40px;
    border: 0.5px solid #c9a84c33;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    background: #111;
}

.co-size-pill input:checked + span {
    border-color: #c9a84c;
    color: #0a0a0a;
    background: #c9a84c;
}

.co-size-pill:hover span {
    border-color: #c9a84c66;
    color: #c9a84c;
}

/* Submit row */
.co-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.co-submit-note {
    font-size: 12px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.5;
}

.co-submit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 13px;
}

.co-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success message */
.co-success[hidden] {
    display: none;
}

.co-success {
    background: #0d0d0d;
    border: 0.5px solid #c9a84c44;
    border-radius: 2px;
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.co-success h3 {
    font-family: "Playfair Display", serif;
    font-size: 24px;
    color: #f5f0e8;
}

.co-success p {
    font-size: 14px;
    color: #777;
    line-height: 1.7;
    max-width: 400px;
}

/* ─── SIDEBAR ─── */
.co-sidebar {
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 70px;
}

.co-sidebar-card {
    background: #0d0d0d;
    border: 0.5px solid #c9a84c22;
    border-radius: 2px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.co-sidebar-title {
    font-family: "Playfair Display", serif;
    font-size: 15px;
    color: #f5f0e8;
    font-weight: 700;
}

.co-sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.co-sidebar-list li {
    font-size: 13px;
    color: #777;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.co-sidebar-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* WhatsApp card */
.co-whatsapp-card {
    background: #0d1a0d;
    border-color: #25D36633;
}

.co-whatsapp-card .co-sidebar-title {
    color: #25D366;
}

.co-whatsapp-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.co-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 11px 16px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background 0.2s, transform 0.15s;
}

.co-wa-btn:hover {
    background: #1ebe5a;
    transform: translateY(-1px);
}

/* Timeline */
.co-timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-tl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.co-tl-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c9a84c;
    flex-shrink: 0;
    margin-top: 4px;
}

.co-tl-dot--rush {
    background: #f5a623;
}

.co-tl-dot--bridal {
    background: #e63946;
}

.co-tl-item strong {
    display: block;
    font-size: 13px;
    color: #f5f0e8;
    font-weight: 500;
    margin-bottom: 2px;
}

.co-tl-item span {
    font-size: 12px;
    color: #555;
}

/* Payment pills in sidebar */
.co-sidebar-pay-note {
    font-size: 12px;
    color: #555;
    margin-top: -4px;
}

.co-pay-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .co-layout {
        grid-template-columns: 1fr;
    }

    .co-form-wrap {
        border-right: none;
        border-bottom: 0.5px solid #c9a84c11;
    }

    .co-sidebar {
        position: static;
        padding: 32px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .co-header {
        flex-direction: column;
        padding: 36px 20px 32px;
    }

    .co-title {
        font-size: 38px;
    }

    .co-header-steps {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .co-row {
        grid-template-columns: 1fr;
    }

    .co-meas-grid {
        grid-template-columns: 1fr 1fr;
    }

    .co-sidebar {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .co-form-wrap {
        padding: 32px 20px;
    }

    .co-submit-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .co-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .co-meas-grid {
        grid-template-columns: 1fr;
    }

    .co-fieldset {
        padding: 20px 16px;
    }
}
