/* Stepper */
.lindum-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
    border: 2px solid #ddd;
}

.step.active .step-circle {
    background: #006938;
    color: #fff;
    border-color: #006938;
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #eee;
    margin: 0 10px;
    position: relative;
    top: -10px;
}

/* Form Steps */
.lindum-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.lindum-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.lindum-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.primary-btn {
    background-color: #006938;
    color: #fff;
    border: none;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-btn:hover {
    background-color: #00502b;
}

.secondary-btn {
    background-color: #f0f0f1;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.secondary-btn:hover {
    background-color: #e5e5e5;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot-btn {
    padding: 12px 5px;
    border: 1px solid #006938;
    background: #fff;
    color: #006938;
    cursor: pointer;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
}

.time-slot-btn:hover:not(.disabled) {
    background: #f0f0f1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-slot-btn.selected {
    background: #006938;
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.time-slot-btn.disabled {
    border-color: #eee;
    background-color: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Messages */
#booking-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.field-description {
    font-size: 0.85em;
    color: #666;
    margin-top: 4px;
    margin-bottom: 0;
}

.required {
    color: #d63638;
}

.input-error {
    border-color: #d63638 !important;
    background-color: #fff8f8 !important;
}

.field-error-text {
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.field-error-text::before {
    content: "!";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #d63638;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    margin-right: 6px;
    font-weight: bold;
}

/* Layout Utils */
.lindum-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lindum-form-group {
    margin-bottom: 20px;
}

.lindum-form-group.half {
    flex: 1;
    min-width: 200px;
}

#lindum-booking-wrapper input,
#lindum-booking-wrapper select,
#lindum-booking-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 15px;
}

#lindum-booking-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

/* Hide the text input for date since we use inline calendar */
#deliveryDate {
    display: none !important;
}

/* Flatpickr Theme Overrides for Lindum Green - Big Calendar Style */
.flatpickr-calendar {
    margin: 0 auto 20px auto !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    border: 1px solid #eee !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #fff !important;
    border-radius: 8px !important;
    padding: 0 !important;
}

.flatpickr-innerContainer {
    display: block !important;
    width: 100% !important;
    border: none !important;
    background: #fff !important;
    border-radius: 0 !important;
}

.flatpickr-rContainer {
    display: block !important;
    width: 100% !important;
}

.flatpickr-days {
    width: 100% !important;
    border-top: 1px solid #eee;
    display: block !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    transform: none !important;
}

.flatpickr-day {
    flex-basis: 14.2857% !important; /* 1/7th width */
    max-width: 14.2857% !important;
    height: 80px !important; /* Big height */
    line-height: 80px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-right: 1px solid #f5f5f5 !important;
    border-bottom: 1px solid #f5f5f5 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 16px !important;
    color: #333 !important;
}

.flatpickr-day.prevMonthDay, 
.flatpickr-day.nextMonthDay {
    color: #ccc !important;
    background: #fafafa !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange {
    background: #006938 !important;
    color: #fff !important;
    border-color: #006938 !important;
}

.flatpickr-day.today {
    border-color: #006938 !important;
    font-weight: bold !important;
    background: #f0f9f4 !important;
}

.flatpickr-day:hover {
    background: #f0f0f0 !important;
}

.flatpickr-day.selected:hover {
    background: #00502b !important;
}

/* Headers */
.flatpickr-months {
    padding: 10px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative !important;
    height: 60px !important;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    position: static !important;
    height: 40px !important;
    width: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #333 !important;
    fill: #333 !important;
    border-radius: 50% !important;
    margin: 0 5px !important;
    top: auto !important;
}

.flatpickr-months .flatpickr-prev-month:hover, 
.flatpickr-months .flatpickr-next-month:hover {
    background: #f0f0f0 !important;
    color: #006938 !important;
}

.flatpickr-months .flatpickr-prev-month svg, 
.flatpickr-months .flatpickr-next-month svg {
    width: 14px !important;
    height: 14px !important;
    fill: inherit !important;
}

.flatpickr-months .flatpickr-month {
    background: transparent !important;
    color: #333 !important;
    fill: #333 !important;
    height: 100% !important;
    overflow: visible !important;
    flex: 1 !important;
    position: static !important;
}

.flatpickr-current-month {
    font-size: 1.2em !important;
    padding: 0 !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    left: auto !important;
    transform: none !important;
}

/* Review Section - Card Layout */
.review-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.review-card-header {
    background: #f9fafb;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-card-icon {
    font-size: 18px;
}

.review-card-title {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.review-card-body {
    padding: 20px;
}

.review-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.review-row:last-child {
    margin-bottom: 0;
}

.review-card .review-item {
    flex: 1;
    min-width: 0;
}

.review-card .review-item.full-width {
    flex: 1 1 100%;
}

.review-card .review-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.review-card .review-value {
    display: block;
    font-size: 15px;
    color: #111827;
    font-weight: 500;
    word-break: break-word;
}

.review-card .review-value.highlight {
    color: #006938;
    font-weight: 600;
    font-size: 16px;
}

/* Notes Card */
.review-card-notes {
    background: #fffbeb;
    border-color: #fde68a;
}

.review-card-notes .review-card-header {
    background: #fef3c7;
    border-color: #fde68a;
}

.review-notes-text {
    font-size: 15px;
    color: #92400e;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Confirmation Notice */
.confirmation-notice {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
}

.confirmation-icon {
    width: 40px;
    height: 40px;
    background: #006938;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 12px auto;
}

.confirmation-notice p {
    margin: 0;
    color: #166534;
    font-size: 14px;
    line-height: 1.5;
}

.confirmation-notice strong {
    color: #14532d;
}

/* Responsive adjustments for review cards */
@media (max-width: 600px) {
    .review-row {
        flex-direction: column;
        gap: 16px;
    }
    
    .review-card-body {
        padding: 16px;
    }
    
    .review-card .review-value {
        font-size: 14px;
    }
}

/* File Upload Styling */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background-color: #fafafa;
}

.file-upload-wrapper:hover {
    border-color: #006938;
    background-color: #f5f5f5;
}

.file-upload-wrapper.drag-over {
    border-color: #006938;
    background-color: #e8f5e9;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-placeholder {
    color: #888;
    font-size: 14px;
}

.file-name {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    word-break: break-all;
}

.file-clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.file-clear-btn:hover {
    background: #c82333;
}

/* Attachment review card */
.review-card-attachment .review-attachment-info {
    color: #333;
    font-size: 14px;
}

.review-card-attachment .review-attachment-info strong {
    color: #006938;
}

