/* ??????????????????????????????????????????????????????????????????????????????????????????
   Data Media Order Page Custom Styles
   ?????????????????????????????????????????????????????????????????????????????????????????? */

/* Order form wrapper */
.order-form-wrapper {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

/* Order header */
.order-header h2 {
    color: #1f1f1f;
    font-weight: 600;
    margin-bottom: 10px;
}

.order-header .lead {
    color: #777;
    font-size: 15px;
}

/* Progress bar */
.order-progress {
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.order-progress .progress-bar {
    background: linear-gradient(90deg, #9dc15b, #7da84a);
    height: 100%;
    transition: width 0.3s ease;
}

/* Order step */
.order-step {
    margin-top: 30px;
    display: none;
}

.order-step.active {
    display: block;
}

.step-title {
    color: #1f1f1f;
    font-size: 18px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.step-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #9dc15b;
}

.step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #9dc15b;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
}

/* Order type grid (radio tiles) - 3x3 fixed */
.order-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.order-type-option input {
    display: none;
}

/* Full-width card (e.g. Inquiry / Feedback) spanning an entire grid row */
.order-type-grid .span-full {
    grid-column: 1 / -1;
}

.order-type-grid .span-full .order-type-label {
    flex-direction: row;
    justify-content: center;
    padding: 22px 10px;
}

.order-type-grid .span-full .order-type-label i {
    margin: 0 10px 0 0;
}

.order-type-label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fafafa;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.order-type-label i {
    font-size: 24px;
    color: #9dc15b;
    margin-bottom: 6px;
}

.order-type-option:hover .order-type-label,
.order-type-option input:checked + .order-type-label {
    border-color: #9dc15b;
    background-color: #f0f8ed;
    color: #1f1f1f;
    transform: translateY(-2px);
}

.order-type-label::after {
    content: "??;
    position: absolute;
    top: 5px;
    right: 8px;
    opacity: 0;
    color: #9dc15b;
    font-weight: 700;
}

.order-type-option input:checked + .order-type-label::after {
    opacity: 1;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.billing-option {
    display: none;
}

.billing-label {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fafafa;
    font-size: 15px;
    color: #555;
    position: relative;
}

.billing-option:hover .billing-label,
.billing-option:checked + .billing-label {
    border-color: #9dc15b;
    background-color: #f0f8ed;
    color: #1f1f1f;
}

.billing-label::after {
    content: "??;
    position: absolute;
    top: 5px;
    right: 8px;
    opacity: 0;
    color: #9dc15b;
    font-weight: 700;
}

.billing-option:checked + .billing-label::after {
    opacity: 1;
}

/* Navigation buttons */
.form-navigation {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-navigation .btn {
    min-width: 120px;
    margin: 0 8px;
}

.submit-btn {
    background: linear-gradient(45deg, #9dc15b, #7da84a);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
}

.submit-btn:hover {
    background: linear-gradient(45deg, #7da84a, #6ba74a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(157, 193, 91, 0.3);
}

/* Success message */
#order-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

#order-message.success h4 {
    color: #155724;
    font-weight: 600;
    margin-bottom: 10px;
}

#order-message.success .order-number {
    font-size: 20px;
    font-weight: 700;
    color: #155724;
    letter-spacing: 1px;
}

#order-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

#order-message.error ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

#order-message.error li {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 767px) {
    .order-form-wrapper {
        padding: 20px 15px;
    }
    .order-type-grid {
        grid-template-columns: 1fr 1fr;
    }
    .billing-toggle {
        flex-direction: column;
    }
    .form-navigation .btn {
        display: block;
        margin: 8px auto;
    }
}

