/* Smart COD Pro Form Styles */

.smart-cod-form-wrapper {
    margin: 20px auto;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background-color: #ffffff;
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.scp-form-main-title {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.smart-cod-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.smart-cod-form .form-field {
    width: 100%;
}

.smart-cod-form .form-field.half-width {
    width: 50%;
}

.smart-cod-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

.smart-cod-form input[type="text"],
.smart-cod-form input[type="tel"],
.smart-cod-form input[type="number"],
.smart-cod-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.smart-cod-form input:focus, .smart-cod-form select:focus {
    border-color: #8A2BE2; /* Purple */
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
    outline: none;
}

.form-submit-row {
    align-items: center;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.quantity-btn {
    background-color: #f5f5f5;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    width: 40px;
    height: 48px;
    color: #555;
}
.quantity-btn.minus { border-radius: 8px 0 0 8px; }
.quantity-btn.plus { border-radius: 0 8px 8px 0; }

.quantity-input {
    width: 50px;
    text-align: center;
    border: none !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.scp-submit-button {
    flex-grow: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: #8A2BE2; /* Purple */
    color: #fff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.scp-submit-button:hover {
    background-color: #7B24CB;
    transform: translateY(-2px);
}
.scp-submit-button:disabled {
    background-color: #c5a6e8;
    cursor: not-allowed;
}

/* رسائل الحالة */
.scp-form-messages .message {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid transparent;
}
.scp-form-messages .message.success {
    background-color: #d4edda; color: #155724; border-color: #c3e6cb;
}
.scp-form-messages .message.error {
    background-color: #f8d7da; color: #721c24; border-color: #f5c6cb;
}

/* RTL Support */
[dir="rtl"] .form-row { flex-direction: row-reverse; }
[dir="rtl"] .form-field.half-width { text-align: right; }

