/* ═══════════════════════════════════════════
   سفارش اختصاصی — استایل فرم
   ═══════════════════════════════════════════ */

:root {
    --wcco-primary:   #520CC7;
    --wcco-secondary: #7727FC;
    --wcco-light:     #AF89FC;
    --wcco-pale:      #DDC7FE;
    --wcco-bg:        #F8F4FF;
    --wcco-border:    #DDC7FE;
}

.wcco-wrap {
    max-width: 620px;
    margin: 0 auto;
    font-family: 'Tahoma', 'Arial', sans-serif;
    direction: rtl;
}

/* ── هدر ─────────────────────────────────── */
.wcco-header {
    text-align: center;
    padding: 32px 20px 24px;
    background: linear-gradient(135deg, #520CC7 0%, #7727FC 100%);
    border-radius: 16px 16px 0 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wcco-header::before {
    content: '';
    position: absolute;
    top: -40px; left: -40px;
    width: 160px; height: 160px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.wcco-header::after {
    content: '';
    position: absolute;
    bottom: -30px; right: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.wcco-header .wcco-icon {
    font-size: 44px;
    display: block;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.wcco-header h2 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.wcco-header p {
    margin: 0;
    opacity: 0.88;
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    color: #ede0ff;
}

/* ── بدنه فرم ───────────────────────────── */
.wcco-form-wrap {
    background: #F8F4FF;
    border: 1px solid #DDC7FE;
    border-top: none;
    border-radius: 0 0 16px 16px;
    padding: 26px 28px 30px;
}

/* ── پیام‌ها ─────────────────────────────── */
.wcco-msg {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
}

.wcco-msg.success {
    background: #ede0ff;
    color: #3a0a8f;
    border: 1px solid #AF89FC;
}

.wcco-msg.error {
    background: #fce8f3;
    color: #7a1040;
    border: 1px solid #f5c6e0;
}

/* ── فیلدها ─────────────────────────────── */
.wcco-field {
    margin-bottom: 18px;
}

.wcco-field label {
    display: block;
    font-weight: 700;
    color: #3a0a8f;
    margin-bottom: 6px;
    font-size: 14px;
}

.wcco-field label .req {
    color: #7727FC;
}

.wcco-field input[type="text"],
.wcco-field input[type="url"],
.wcco-field input[type="number"],
.wcco-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #DDC7FE;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Tahoma', sans-serif;
    background: #ffffff !important;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    display: block;
}

.wcco-field input:focus,
.wcco-field textarea:focus {
    border-color: #7727FC;
    box-shadow: 0 0 0 3px rgba(119,39,252,0.12);
}

.wcco-field small {
    display: block;
    color: #9b7ec8;
    font-size: 12px;
    margin-top: 4px;
}

/* ── گروه ورودی دلار ─────────────────────── */
.wcco-input-group {
    display: flex;
    align-items: center;
    direction: ltr;
}

.wcco-input-group input {
    border-radius: 8px 0 0 8px !important;
    flex: 1;
}

.wcco-currency {
    background: linear-gradient(135deg, #7727FC, #520CC7);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 16px;
    border: 1.5px solid #7727FC;
    line-height: 1.5;
    letter-spacing: 1px;
}

/* ── پیش‌نمایش قیمت ─────────────────────── */
.wcco-preview {
    background: linear-gradient(135deg, #ede0ff 0%, #f8f4ff 100%);
    border: 2px solid #AF89FC;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin: 4px 0 18px;
    position: relative;
    overflow: hidden;
}

.wcco-preview::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    width: 80px; height: 80px;
    background: rgba(119,39,252,0.06);
    border-radius: 50%;
}

.wcco-preview-title {
    font-size: 13px;
    color: #520CC7;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.wcco-preview-amount {
    font-size: 30px;
    font-weight: 700;
    color: #7727FC;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.wcco-preview-detail {
    font-size: 11px;
    color: #9b7ec8;
    direction: ltr;
    position: relative;
    z-index: 1;
}

/* ── دکمه ───────────────────────────────── */
.wcco-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #7727FC 0%, #520CC7 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Tahoma', sans-serif;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 18px rgba(119,39,252,0.4);
    margin-top: 6px;
    letter-spacing: 0.3px;
}

.wcco-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(119,39,252,0.5);
}

.wcco-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(119,39,252,0.3);
}

.wcco-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── ریسپانسیو ──────────────────────────── */
@media (max-width: 480px) {
    .wcco-form-wrap {
        padding: 18px 16px 22px;
    }
    .wcco-preview-amount {
        font-size: 24px;
    }
}
