/* ORLEN Paczka Returns - Frontend Styles */

.opr-return-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.opr-return-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.opr-form-header {
    margin-bottom: 30px;
    text-align: center;
}

.opr-form-header h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 28px;
}

.opr-form-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Info Box */
.opr-form-info-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 4px;
}

.opr-form-info-box p {
    margin: 0 0 10px;
    color: #333;
    font-size: 14px;
}

.opr-form-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.opr-form-info-box li {
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
}

.opr-form-info-box li:last-child {
    margin-bottom: 0;
}

/* Form Messages */
.opr-form-messages {
    margin-bottom: 20px;
}

.opr-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.opr-message.show {
    display: block;
}

.opr-message-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.opr-message-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.opr-message-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Form Fields */
.opr-form-fields {
    margin-top: 20px;
}

.opr-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.opr-form-row:last-child {
    margin-bottom: 0;
}

.opr-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.opr-field-half {
    flex: 0 0 calc(50% - 10px);
}

.opr-form-field label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.opr-form-field .required {
    color: #dc3545;
}

.opr-form-field input[type="text"],
.opr-form-field input[type="email"],
.opr-form-field input[type="tel"],
.opr-form-field select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.opr-form-field input[type="text"]:focus,
.opr-form-field input[type="email"]:focus,
.opr-form-field input[type="tel"]:focus,
.opr-form-field select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.opr-form-field select {
    cursor: pointer;
    background-color: #fff;
}

.opr-field-description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

/* Box Size Selector */
.opr-box-size-selector {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.opr-box-option {
    flex: 1;
    cursor: pointer;
}

.opr-box-option input[type="radio"] {
    display: none;
}

.opr-box-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fff;
}

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

.opr-box-option input[type="radio"]:checked + .opr-box-card {
    border-color: #007bff;
    background: #f0f8ff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.2);
}

.opr-box-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.opr-box-dimensions {
    font-size: 16px;
    color: #007bff;
    font-weight: 600;
    margin-bottom: 5px;
}

.opr-box-weight {
    font-size: 14px;
    color: #666;
}

.opr-box-warning {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    border-radius: 4px;
    color: #856404;
}

.opr-box-size-selector.error .opr-box-card {
    border-color: #dc3545;
}

.opr-box-size-selector.error .opr-box-card:hover {
    border-color: #dc3545;
}

/* Checkbox */
.opr-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal !important;
}

.opr-checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.opr-checkbox-label span {
    flex: 1;
}

.opr-open-terms {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.opr-open-terms:hover {
    text-decoration: underline;
}

/* Turnstile */
.cf-turnstile {
    margin: 10px 0;
}

/* Submit Button */
.opr-submit-button {
    width: 100%;
    padding: 15px 30px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    position: relative;
}

.opr-submit-button:hover {
    background: #0056b3;
}

.opr-submit-button:active {
    transform: translateY(1px);
}

.opr-submit-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.opr-submit-spinner {
    display: inline-block;
}

.opr-submit-spinner .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: opr-spin 0.6s linear infinite;
}

@keyframes opr-spin {
    to { transform: rotate(360deg); }
}

/* Modal */
.opr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opr-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.opr-modal-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.opr-success-modal-content {
    max-width: 500px;
}

.opr-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.opr-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.opr-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.opr-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.opr-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.opr-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.opr-modal-close-btn {
    padding: 10px 25px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.opr-modal-close-btn:hover {
    background: #5a6268;
}

.opr-modal-close-btn.opr-primary-btn {
    background: #007bff;
}

.opr-modal-close-btn.opr-primary-btn:hover {
    background: #0056b3;
}

/* Success Modal Content */
.opr-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    color: #fff;
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.opr-success-message {
    text-align: center;
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.opr-shipping-code-box {
    background: #f8f9fa;
    border: 2px solid #007bff;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.opr-shipping-code-box strong {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.opr-shipping-code {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #007bff;
    letter-spacing: 2px;
}

.opr-return-info {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    border-radius: 4px;
}

.opr-return-info p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

.opr-return-info p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .opr-return-form {
        padding: 20px;
    }
    
    .opr-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .opr-field-half {
        flex: 1 1 100%;
    }
    
    .opr-form-header h2 {
        font-size: 24px;
    }
    
    .opr-box-size-selector {
        flex-direction: column;
        gap: 10px;
    }
    
    .opr-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .opr-shipping-code {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .opr-return-form-wrapper {
        padding: 10px;
    }
    
    .opr-return-form {
        padding: 15px;
    }
    
    .opr-form-header h2 {
        font-size: 20px;
    }
    
    .opr-modal-body {
        padding: 15px;
    }
}
