/* Junk Removal Booking System - Main Styles */

:root {
    --jrb-green: #2F7800;
    --jrb-black: #232323;
    --jrb-bg: #ECECEC;
    --jrb-white: #FFFFFF;
    --jrb-danger: #dc3545;
    --jrb-secondary: #6c757d;
}

/* Form Container */
.jrb-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: var(--jrb-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jrb-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.jrb-form-col {
    flex: 1;
}

.jrb-form-col input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.jrb-form-note {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Buttons */
.jrb-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.jrb-btn-primary {
    background: var(--jrb-green);
    color: var(--jrb-white);
    width: 100%;
}

.jrb-btn-primary:hover {
    background: #256600;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.jrb-btn-secondary {
    background: var(--jrb-secondary);
    color: var(--jrb-white);
}

.jrb-btn-secondary:hover {
    background: #5a6268;
}

.jrb-btn-danger {
    background: var(--jrb-danger);
    color: var(--jrb-white);
}

.jrb-btn-danger:hover {
    background: #c82333;
}

.jrb-btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* Booking Container */
.jrb-booking-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: var(--jrb-bg);
    min-height: 600px;
}

/* Accordion */
.jrb-accordion {
    background: var(--jrb-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.jrb-accordion-item {
    border-bottom: 1px solid var(--jrb-bg);
}

.jrb-accordion-item:last-child {
    border-bottom: none;
}

.jrb-accordion-header {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: var(--jrb-white);
    transition: background 0.3s ease;
}

.jrb-accordion-item.active .jrb-accordion-header {
    background: #f8f9fa;
}

.jrb-accordion-item.completed .jrb-accordion-header {
    cursor: default;
}

.jrb-step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--jrb-bg);
    color: var(--jrb-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.jrb-accordion-item.active .jrb-step-number {
    background: var(--jrb-green);
    color: var(--jrb-white);
}

.jrb-accordion-item.completed .jrb-step-number {
    background: var(--jrb-green);
    color: var(--jrb-white);
}

.jrb-step-title {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    color: var(--jrb-black);
}

.jrb-step-status {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

.jrb-accordion-item.completed .jrb-step-status::after {
    content: "✓";
    color: var(--jrb-green);
    font-size: 20px;
    font-weight: bold;
}

.jrb-accordion-content {
    display: none;
    padding: 20px;
    background: var(--jrb-white);
}

.jrb-accordion-item.active .jrb-accordion-content {
    display: block;
}

/* Appointment Selector */
.jrb-appointment-selector {
    padding: 20px;
}

.jrb-date-picker,
.jrb-time-picker {
    margin-bottom: 20px;
}

.jrb-date-picker label,
.jrb-time-picker label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--jrb-black);
}

.jrb-date-picker input,
.jrb-time-picker select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

/* Form Sections */
.jrb-form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--jrb-bg);
}

.jrb-form-section:last-child {
    border-bottom: none;
}

.jrb-form-section h3 {
    color: var(--jrb-black);
    margin-bottom: 15px;
    font-size: 18px;
}

.jrb-form-group {
    margin-bottom: 15px;
}

.jrb-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--jrb-black);
}

.jrb-form-group input[type="text"],
.jrb-form-group input[type="email"],
.jrb-form-group input[type="tel"],
.jrb-form-group select,
.jrb-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.jrb-form-group textarea {
    resize: vertical;
}

.jrb-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.jrb-form-row-3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
}

.jrb-radio-group {
    display: flex;
    gap: 20px;
}

.jrb-radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.jrb-radio-group input[type="radio"] {
    margin-right: 8px;
}

.jrb-checkbox-group {
    margin: 15px 0;
}

.jrb-checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-weight: normal;
    cursor: pointer;
}

.jrb-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
}

.jrb-form-submit {
    text-align: center;
    margin-top: 30px;
}

.jrb-disclaimer {
    color: #666;
    font-size: 12px;
    margin-top: 10px;
}

/* Confirmation Page */
.jrb-confirmation-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.jrb-confirmation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.jrb-booking-details {
    background: var(--jrb-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jrb-booking-details h2 {
    color: var(--jrb-green);
    margin-bottom: 20px;
}

#jrb-booking-info {
    margin-bottom: 20px;
}

#jrb-booking-info .booking-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid var(--jrb-bg);
}

#jrb-booking-info .booking-label {
    font-weight: 600;
    width: 120px;
    color: var(--jrb-black);
}

#jrb-booking-info .booking-value {
    flex: 1;
    color: #555;
}

.jrb-booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.jrb-booking-actions button {
    flex: 1;
}

/* FAQ Section */
.jrb-faq-section {
    background: var(--jrb-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.jrb-faq-section h2 {
    color: var(--jrb-black);
    margin-bottom: 20px;
}

.jrb-faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--jrb-bg);
}

.jrb-faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.jrb-faq-item h3 {
    color: var(--jrb-green);
    margin-bottom: 10px;
    font-size: 16px;
}

.jrb-faq-item p {
    color: #555;
    line-height: 1.6;
}

/* Modal */
.jrb-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.jrb-modal-content {
    background-color: var(--jrb-white);
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.jrb-modal-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.jrb-modal-close:hover,
.jrb-modal-close:focus {
    color: #000;
}

.jrb-modal h2 {
    color: var(--jrb-black);
    margin-bottom: 20px;
}

.jrb-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.jrb-modal-actions button {
    flex: 1;
}

/* Success/Error Messages */
.jrb-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

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

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

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

/* Loading Spinner */
.jrb-spinner {
    border: 3px solid var(--jrb-bg);
    border-radius: 50%;
    border-top: 3px solid var(--jrb-green);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .jrb-form-row {
        flex-direction: column;
    }
    
    .jrb-form-row-2,
    .jrb-form-row-3 {
        grid-template-columns: 1fr;
    }
    
    .jrb-confirmation-content {
        grid-template-columns: 1fr;
    }
    
    .jrb-booking-actions {
        flex-direction: column;
    }
    
    .jrb-radio-group {
        flex-direction: column;
        gap: 10px;
    }
}
