/* Admin page styles */
.wrap .form-table th {
    padding: 8px 10px 8px 0;
}

.wrap .form-table td {
    padding: 8px 10px;
}

.wrap .form-table h2 {
    margin: 10px 0;
    padding: 0;
    color: #23282d;
}

.wrap .form-table h3 {
    margin: 0;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
    color: #23282d;
}

/* Main tabs (Photobooth Types) */
.nav-tab-wrapper.main-tabs {
    margin-bottom: 0;
    border-bottom: 1px solid #ccc;
    background: #fff;
    z-index: 2;
    position: relative;
    padding-top: 10px;
}

.nav-tab.main-tab {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    margin-left: 0.5em;
    padding: 10px 15px;
    font-size: 15px;
    line-height: 1.71428571;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.1s ease-in-out;
}

.nav-tab.main-tab:hover {
    background-color: #e9e9e9;
    color: #23282d;
}

.nav-tab.main-tab.nav-tab-active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    color: #23282d;
}

/* Sub tabs (Price Types) */
.nav-tab-wrapper.sub-tabs {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 10px;
    background: #f8f8f8;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1;
    padding-top: 5px;
}

.sub-tabs .nav-tab {
    font-size: 13px;
    padding: 7px 12px;
    margin-left: 0.2em;
    background: #e9e9e9;
    border: 1px solid #ccc;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #555;
    top: 1px; /* Adjust vertical alignment */
    position: relative;
    transition: background-color 0.1s ease-in-out;
}

.sub-tabs .nav-tab:hover {
     background-color: #ddd;
     color: #23282d;
}

.sub-tabs .nav-tab.nav-tab-active {
    background: #fff;
    color: #23282d;
    border-bottom: 1px solid #fff;
    z-index: 2;
}

.sub-tabs .nav-tab .dashicons {
    vertical-align: text-top;
    margin-right: 5px;
}

/* Tab content area */
.tab-content {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0 0 8px 8px;
    padding: 20px 30px 10px 30px; /* Adjusted padding */
    margin-top: -1px;
}

/* Table styling */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.form-table th, .form-table td {
    padding: 5px 10px;
    border: 1px solid #e5e5e5;
    text-align: left;
    vertical-align: middle;
}

.form-table th {
    background-color: #f8f8f8;
    font-weight: 600;
    width: 150px; /* Adjust as needed */
}

.form-table td input[type="number"] {
    width: 80px; /* Adjust width for price inputs */
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-table .description {
    margin-top: 0;
    font-size: 12px;
}

/* Row colors */
.form-table .weekday-row {
    background-color: #eaf2fa; /* Light blue */
}

.form-table .weekend-row {
    background-color: #fff9e6; /* Light yellow */
}

/* Overzicht tab styles */
.price-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.price-card {
    background: #f8f8f8;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 15px;
}

.price-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #23282d;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.price-card p {
    margin: 5px 0;
    font-size: 14px;
}

.price-card .dashicons {
    margin-right: 5px;
    color: #0073aa; /* WordPress blue */
}

.price-card h5 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #555;
}

/* Delete button style */
.delete-price {
    color: #a00;
    border-color: #a00;
    background: #f9f9f9;
}

.delete-price:hover {
    color: #fff;
    background: #a00;
}

/* === Frontend Form Styles === */

/* Main container styling */
.photobooth-offerte-form-container {
    max-width: 800px; /* Smaller max-width for better readability */
    margin: 2rem auto;
    padding: 2rem;
    background: var(--pb-offerte-background-color, #ffffff);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Form styling */
.photobooth-offerte-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Row styling */
.form-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0, 1fr) prevents expansion */
    gap: 1.5rem;
    width: 100%;
}

/* Form group styling */
.form-group {
    width: 100%;
    position: relative;
}

/* Special full-width form groups */
.form-group.full-width {
    grid-column: 1 / -1;
}

/* Label styling */
.photobooth-offerte-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--pb-offerte-text-color, #333);
}

/* Input styling */
.photobooth-offerte-form input[type="text"],
.photobooth-offerte-form input[type="email"],
.photobooth-offerte-form input[type="tel"],
.photobooth-offerte-form input[type="date"],
.photobooth-offerte-form select {
    width: 100%;
    height: 48px; /* Fixed height for all inputs */
    padding: 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Placeholder styling */
.photobooth-offerte-form input::placeholder,
.photobooth-offerte-form select:invalid {
    color: #6c757d;
    opacity: 1;
}

/* Date input specific styling */
.photobooth-offerte-form input[type="date"] {
    min-width: 0; /* Prevent date input from expanding */
    padding-right: 2.5rem;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
}

/* Hide default calendar icon in WebKit browsers */
.photobooth-offerte-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 2.5rem;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}

/* Hide default calendar icon in Firefox */
.photobooth-offerte-form input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 0;
}

/* Hide clear button in Edge */
.photobooth-offerte-form input[type="date"]::-ms-clear,
.photobooth-offerte-form input[type="date"]::-ms-reveal {
    display: none;
}

/* Select field styling to match date input */
.photobooth-offerte-form select {
    padding-right: 2.5rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5rem;
}

/* Remove default select arrow in IE */
.photobooth-offerte-form select::-ms-expand {
    display: none;
}

/* Input focus states */
.photobooth-offerte-form input:focus,
.photobooth-offerte-form select:focus {
    outline: none;
    border-color: var(--pb-offerte-primary-color, #007bff);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Price display styling */
.offerte-price {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    grid-column: 1 / -1; /* Make price display full width */
}

.offerte-price p {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.offerte-price .total-line {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Submit button styling */
#offerte-submit {
    background-color: var(--pb-offerte-primary-color, #dc3545);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: auto;
    align-self: flex-start;
}

#offerte-submit:hover {
    background-color: var(--pb-offerte-secondary-color, #c82333);
}

/* Price breakdown styling */
.price-breakdown {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-breakdown p {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
    color: #495057;
}

.price-breakdown .price-item {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.price-breakdown .total-price {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--pb-offerte-primary-color, #dc3545);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }
}

@media (max-width: 768px) {
    .photobooth-offerte-form-container {
        padding: 1rem;
        margin: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 1rem;
    }

    #offerte-submit {
        width: 100%;
    }
}

/* Location field should always be full width */
.form-group:has(input#event_location) {
    grid-column: 1 / -1;
}

/* Price breakdown should always be full width */
.form-group:has(#offerte-price) {
    grid-column: 1 / -1;
}

/* Submit button container should always be full width */
.form-group:has(#offerte-submit) {
    grid-column: 1 / -1;
    text-align: right; /* Align button to the right */
}

/* Last minute prices grid styling */
.upcoming-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.price-day-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.price-day-card.weekend-card {
    background-color: #fff9e6;
}

.price-day-card.weekday-card {
    background-color: #eaf2fa;
}

.price-day-card .date {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.price-day-card .day {
    color: #666;
    margin-bottom: 1rem;
}

.price-day-card .last-minute-info {
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.price-day-card .final-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--pb-offerte-primary-color, #dc3545);
    margin-top: 0.5rem;
}

.price-day-card small {
    display: block;
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
    margin-top: 0.25rem;
}

/* Error state styling */
.photobooth-offerte-form input.error,
.photobooth-offerte-form select.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success message styling */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Required field indicator */
.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Documentation Page Styles */
.photobooth-offerte-docs .wrap p,
.photobooth-offerte-docs .wrap li {
    font-size: 1.2em; /* Increased font size for readability */
    line-height: 1.7; /* Increased line height for readability */
    margin-bottom: 1em; /* Add space below paragraphs and list items */
}

.photobooth-offerte-docs .wrap h2 {
    margin-top: 2em; /* More space above main section titles */
    margin-bottom: 1em; /* More space below main section titles */
    font-size: 1.6em; /* Slightly larger main titles */
}

.photobooth-offerte-docs .wrap h4 {
    margin-top: 1.5em; /* Space above price structure points */
    margin-bottom: 0.5em; /* Space below price structure titles */
    font-size: 1.3em; /* Larger price structure titles */
}

.photobooth-offerte-docs .wrap ul {
    margin-bottom: 1em; /* Space below lists */
}

.photobooth-offerte-docs .wrap ul li {
    margin-bottom: 0.5em; /* Space between list items */
}

/* Remove dynamic photobooth type management styles */
#photobooth-types-container,
.photobooth-type-row,
.ui-sortable-helper,
.ui-sortable-placeholder {
    display: none;
}

/* Event Type Selector styling */
.event-type-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.event-type-option {
    flex: 1;
}

.event-type-option input[type="radio"] {
    display: none;
}

.event-type-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.event-type-option input[type="radio"]:checked + label {
    border-color: var(--pb-offerte-primary-color, #007bff);
    background-color: var(--pb-offerte-primary-color, #007bff);
    color: white;
}

.event-type-option .icon {
    font-size: 1.5rem;
    line-height: 1;
}

.event-type-option .text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Hover effect */
.event-type-option label:hover {
    border-color: var(--pb-offerte-primary-color, #007bff);
    background-color: rgba(0, 123, 255, 0.05);
}

.event-type-option input[type="radio"]:checked + label:hover {
    background-color: var(--pb-offerte-primary-color, #007bff);
}

/* Mobile responsiveness for event type selector */
@media (max-width: 768px) {
    .event-type-selector {
        flex-direction: column;
    }
    
    .event-type-option {
        width: 100%;
    }
} 