/* ===== Custom Order Page ===== */
.co-page {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 4rem;
}

/* Hero */
.co-hero {
    position: relative;
    padding: 2.5rem 1.5rem 2rem;
    overflow: hidden;
}
.co-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.co-hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}
.co-hero-glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.35), transparent 70%);
    top: -200px;
    left: -100px;
}
.co-hero-glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
    top: -100px;
    right: -50px;
}
.co-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.co-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    transition: color 0.2s;
}
.co-back:hover { color: #c4b5fd; }
.co-hero-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c4b5fd;
    background: rgba(124,58,237,0.15);
    border: 1px solid rgba(124,58,237,0.3);
    border-radius: 20px;
    margin-bottom: 1rem;
}
.co-hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #f1f5f9;
    margin: 0 0 0.8rem;
}
.co-hero-accent {
    display: block;
    background: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.co-hero-desc {
    font-size: 1rem;
    color: #94a3b8;
    line-height: 1.65;
    margin: 0;
    max-width: 560px;
    margin-inline: auto;
}

/* Layout */
.co-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sidebar */
.co-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.co-info-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(124,58,237,0.12);
    border-radius: 16px;
    padding: 1.25rem;
}
.co-info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 0.8rem;
}
.co-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(124,58,237,0.12);
    border-radius: 10px;
    color: #7c3aed;
    margin-bottom: 0.75rem;
}

/* Steps */
.co-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.co-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}
.co-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 8px;
    margin-top: 0.05rem;
}
.co-steps li strong {
    display: block;
    font-size: 0.85rem;
    color: #e2e8f0;
    margin-bottom: 0.15rem;
}
.co-steps li p {
    margin: 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Tips */
.co-tip-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.co-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.5rem 0.6rem;
    background: rgba(124,58,237,0.05);
    border-radius: 8px;
}
.co-tip-emoji {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}
.co-tip-item strong {
    display: block;
    font-size: 0.8rem;
    color: #c4b5fd;
    margin-bottom: 0.1rem;
}
.co-tip-item span {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* Example */
.co-example-card {
    border-color: rgba(6,182,212,0.15);
    background: rgba(6,182,212,0.03);
}
.co-example-text {
    margin: 0;
    padding: 0.65rem 0.85rem;
    background: rgba(6,182,212,0.06);
    border-left: 3px solid rgba(6,182,212,0.3);
    border-radius: 0 8px 8px 0;
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.55;
    font-style: italic;
}

/* Form Section */
.co-form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.co-form-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(124,58,237,0.15);
    border-radius: 16px;
    padding: 1.5rem;
}
.co-form-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(124,58,237,0.1);
}
.co-form-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #e2e8f0;
}

/* Auth notice */
.co-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.2rem;
    background: rgba(124,58,237,0.06);
    border: 1px solid rgba(124,58,237,0.2);
    border-radius: 12px;
    color: #94a3b8;
}
.co-auth-notice svg {
    flex-shrink: 0;
    color: #7c3aed;
    margin-top: 0.1rem;
}
.co-auth-notice p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.co-auth-link {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.co-auth-link:hover { color: #a78bfa; }

/* Form fields */
.co-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.co-field label {
    display: block;
    font-size: 0.83rem;
    font-weight: 500;
    color: #c4b5fd;
    margin-bottom: 0.4rem;
}
.co-required { color: #ef4444; }
.co-field select,
.co-field input,
.co-field textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(124,58,237,0.18);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.co-field select:focus,
.co-field input:focus,
.co-field textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}
.co-field textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}
.co-field select option {
    background: #1a1a2e;
    color: #e2e8f0;
}
.co-field-hint {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    color: #64748b;
}
.co-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Submit */
.co-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 0.25rem;
    position: relative;
    overflow: hidden;
}
.co-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.co-submit:hover:not(:disabled)::before {
    transform: translateX(100%);
}
.co-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124,58,237,0.35);
}
.co-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.co-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: coSpin 0.7s linear infinite;
}
@keyframes coSpin { to { transform: rotate(360deg); } }

/* Messages */
.co-msg {
    font-size: 0.88rem;
    text-align: center;
    min-height: 1.2em;
    margin-top: 0.25rem;
}
.co-msg.error { color: #ef4444; }
.co-msg.success { color: #22c55e; }

/* Success state */
.co-success {
    text-align: center;
    padding: 2rem 1rem;
}
.co-success-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}
.co-success h3 {
    color: #e2e8f0;
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}
.co-success p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
    line-height: 1.5;
}
.co-success-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.65rem 1.4rem;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.co-success-link:hover {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}

/* Guarantees */
.co-guarantees {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.co-guarantee {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .co-layout {
        grid-template-columns: 1fr;
    }
    .co-sidebar {
        order: 2;
    }
    .co-form-section {
        order: 1;
    }
}
@media (max-width: 600px) {
    .co-hero-title {
        font-size: 1.6rem;
    }
    .co-hero-desc {
        font-size: 0.9rem;
    }
    .co-layout {
        padding: 0 1rem;
    }
    .co-field-row {
        grid-template-columns: 1fr;
    }
    .co-guarantees {
        flex-direction: column;
        gap: 0.65rem;
    }
    .co-form-card {
        padding: 1.1rem;
    }
}
