/**
 * PSReturns Stylesheet
 */

/* Main container */
#psreturns-form-container {
    margin: 0 auto;
    padding: 20px 0;
}

/* Card styling */
.card {
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 13px;
}

/* Product rows */
.product-row {
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.product-row:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.product-row .card-body {
    padding: 15px;
}

.product-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.product-total {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.product-notes-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.product-notes-container textarea {
    min-height: 60px;
}

/* Order groups */
.order-group {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #007bff;
}

.order-group h4 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid transparent;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.alert ul li {
    margin-bottom: 5px;
}

/* Recaptcha */
.g-recaptcha {
    display: inline-block;
}

/* Responsive design */
@media (max-width: 768px) {
    #psreturns-form-container {
        padding: 10px;
    }

    .card-body {
        padding: 15px;
    }

    .product-row .card-body {
        padding: 10px;
    }

    .row {
        margin-left: -10px;
        margin-right: -10px;
    }

    .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .product-row .row > div {
        margin-bottom: 10px;
    }

    .btn-lg {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Text utilities */
.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Margin utilities */
.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

/* Alignment */
.align-items-center {
    align-items: center;
}

/* Material icons for customer account link */
#returns-link .material-icons {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    color: #007bff;
}

#returns-link {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: block;
    text-decoration: none;
    color: #333;
}

#returns-link:hover {
    border-color: #007bff;
    background: #f8f9fa;
    text-decoration: none;
    color: #007bff;
}

/* Form validation states */
.form-control:invalid:focus {
    border-color: #dc3545;
}

.form-control:valid:focus {
    border-color: #28a745;
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Small text */
small, .form-text {
    font-size: 85%;
    color: #6c757d;
    display: block;
    margin-top: 5px;
}

/* Strong emphasis */
strong {
    font-weight: 600;
}
