/**
 * PICS Trade Accounts - Frontend Styles
 * Registration form, account status, and notices.
 */

/* Registration Form */
.pics-trade-register-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 0;
}

.pics-trade-register-wrap h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2C3440;
    margin: 0 0 12px 0;
}

.pics-trade-register-wrap > p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.pics-trade-register-form .pics-form-row {
    margin-bottom: 20px;
}

.pics-trade-register-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #2C3440;
    margin-bottom: 6px;
}

.pics-trade-register-form label .required {
    color: #FF293A;
}

.pics-trade-register-form input[type="text"],
.pics-trade-register-form input[type="email"],
.pics-trade-register-form input[type="tel"],
.pics-trade-register-form input[type="password"],
.pics-trade-register-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.2s ease;
}

.pics-trade-register-form input:focus,
.pics-trade-register-form textarea:focus {
    border-color: #FF293A;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 41, 58, 0.15);
}

.pics-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pics-trade-submit-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: #FF293A;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.pics-trade-submit-btn:hover {
    background: #d41e2e;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 41, 58, 0.3);
}

/* Notices */
.pics-trade-notice {
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.6;
}

.pics-trade-notice h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
}

.pics-trade-notice--success {
    background: #f0faf4;
    border: 1px solid #0f834d;
    color: #0f834d;
}

.pics-trade-notice--error {
    background: #fef0f0;
    border: 1px solid #e2401c;
    color: #e2401c;
}

.pics-trade-notice--info {
    background: #f0f6fc;
    border: 1px solid #3d9cd2;
    color: #2C3440;
}

.pics-trade-notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* Account Status on My Account Dashboard */
.pics-account-status-wrap {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 30px;
}

.pics-account-status-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2C3440;
    margin: 0 0 12px 0;
}

.pics-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    margin: 0;
}

.pics-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.pics-status--active .pics-status-dot {
    background: #0f834d;
}

.pics-status--pending .pics-status-dot {
    background: #f0ad4e;
}

.pics-status--suspended .pics-status-dot {
    background: #e2401c;
}

.pics-status--active {
    color: #0f834d;
}

.pics-status--pending {
    color: #856404;
}

.pics-status--suspended {
    color: #e2401c;
}

/* Orders Requiring Action - Dashboard Cards */
.pics-orders-action-wrap {
    margin-bottom: 30px;
}

.pics-orders-action-wrap h3 {
    font-size: 18px;
    font-weight: 700;
    color: #2C3440;
    margin: 0 0 14px 0;
}

.pics-order-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.pics-order-action-card--payment {
    background: #fff3e0;
    border: 1px solid #ffcc80;
}

.pics-order-action-card--pending {
    background: #f0f6fc;
    border: 1px solid #cce0f5;
}

.pics-order-action-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pics-order-action-info strong {
    font-size: 15px;
    color: #2C3440;
}

.pics-order-action-detail {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.pics-order-action-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.pics-order-action-btn--pay {
    background: #FF293A;
    color: #fff;
}

.pics-order-action-btn--pay:hover {
    background: #d41e2e;
    color: #fff;
}

.pics-order-action-btn--view {
    background: #2C3440;
    color: #fff;
}

.pics-order-action-btn--view:hover {
    background: #1a2028;
    color: #fff;
}

@media (max-width: 767px) {
    .pics-form-row--half {
        grid-template-columns: 1fr;
    }

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

    .pics-order-action-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .pics-order-action-btn {
        width: 100%;
        text-align: center;
    }
}
