/* 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: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Layout */
.photobooth-offerte-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: start;
    margin-bottom: 1rem;
}

/* Form Elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: normal;
    color: var(--pb-offerte-container-text, #666);
    font-size: 0.85rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--pb-offerte-input-border, #e0e0e0);
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background: var(--pb-offerte-input-bg, #fff);
    width: 100%;
    color: var(--pb-offerte-container-text, #666);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--pb-offerte-input-focus, #4a90e2);
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--pb-offerte-input-focus-rgb, 74, 144, 226), 0.1);
}

/* Dropdown specific styling */
.form-group select {
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' 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 10px center;
    background-size: 16px;
}

/* Dropdown options */
.form-group select option {
    font-size: 0.85rem;
    padding: 8px;
    color: #666;
}

/* Placeholder color */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

/* Event Type Radio Buttons */
.event-type-group {
    display: flex;
    gap: 2rem;
    padding: 0.75rem 0;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    outline: none;
    margin: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"]:checked {
    border-color: #4a90e2;
    background: #4a90e2;
}

.radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-option label {
    cursor: pointer;
    font-weight: normal;
    font-size: 0.85rem;
    color: var(--pb-offerte-container-text, #666);
}

/* Submit Button */
#offerte-submit {
    background: var(--pb-offerte-button-bg, #4a90e2);
    color: var(--pb-offerte-button-text, #ffffff);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
    margin: 2rem auto;
    display: block;
}

#offerte-submit:hover {
    background: var(--pb-offerte-button-hover-bg, #357abd);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--pb-offerte-button-bg-rgb, 74, 144, 226), 0.2);
}

#offerte-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Price Breakdown */
.price-breakdown {
    background: #fafbfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2.5rem 0;
    font-size: 1.05rem;
}

.price-breakdown .label {
    font-weight: 500;
    color: #666;
}

.price-breakdown .price {
    font-weight: 600;
    color: #222;
    margin-left: 0.5em;
}

.price-breakdown .hourly-breakdown {
    margin: 1rem 0 0.5rem 0;
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 6px;
}

.price-breakdown .breakdown-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
}

.price-breakdown .hourly-price {
    display: flex;
    align-items: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
}

.price-breakdown .hourly-price:last-child {
    border-bottom: none;
}

.price-breakdown .discount {
    color: #1ca14e;
    font-weight: 500;
    margin-left: 1em;
}

.price-breakdown .surcharge, .price-breakdown .price-surcharge {
    color: #e67e22;
    font-weight: 500;
    margin-left: 1em;
}

.price-breakdown .price-discount {
    color: #1ca14e;
    font-weight: 500;
    margin-left: 1em;
}

.price-breakdown .total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    color: #222;
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
}

/* Error Messages */
.error-message {
    color: var(--pb-offerte-error-color, #dc3545);
    background: var(--pb-offerte-error-bg, #f8d7da);
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Success Messages */
.success-message {
    color: var(--pb-offerte-success-color, #28a745);
    background: var(--pb-offerte-success-bg, #d4edda);
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}

/* Loading State */
.calculating {
    color: #666;
    font-style: italic;
    padding: 1rem;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .photobooth-offerte-form-container {
        padding: 1rem;
        margin: 1rem;
    }

    .form-row {
        gap: 1.5rem;
    }

    .event-type-group {
        gap: 1.5rem;
    }
}

/* Field Error State */
.form-group input.error,
.form-group select.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

/* Hover Effects */
.form-group input:hover,
.form-group select:hover {
    border-color: #4a90e2;
}

/* 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 var(--pb-offerte-event-type-border, #e0e0e0);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--pb-offerte-event-type-bg, #ffffff);
    color: var(--pb-offerte-container-text, #333333);
    font-weight: normal;
}

.event-type-option input[type="radio"]:checked + label {
    border-color: var(--pb-offerte-event-type-selected-bg, #007bff);
    background-color: var(--pb-offerte-event-type-selected-bg, #007bff);
    color: var(--pb-offerte-event-type-selected-text, #ffffff);
}

.event-type-option .icon {
    font-size: 1.5rem;
    line-height: 1;
}

.event-type-option .text {
    font-size: 1.1rem;
    font-weight: normal;
}

/* Hover effect */
.event-type-option label:hover {
    border-color: var(--pb-offerte-event-type-selected-bg, #007bff);
    background-color: rgba(var(--pb-offerte-event-type-selected-bg-rgb, 0, 123, 255), 0.05);
}

.event-type-option input[type="radio"]:checked + label:hover {
    background-color: var(--pb-offerte-event-type-selected-bg, #007bff);
}

/* Mobile responsiveness for event type selector */
@media (max-width: 768px) {
    .photobooth-offerte-form {
        padding: 10px;
    }
    
    .price-breakdown {
        padding: 15px;
    }
    
    .price-breakdown .price-item,
    .price-breakdown .total-price {
        font-size: 0.9em;
    }
}

/* Debug sectie */
.debug-info {
    margin-top: 2rem;
    padding: 1.2rem 1.5rem;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.98rem;
    color: #444;
}

.debug-info ul {
    margin: 0.5em 0 0 0;
    padding: 0 0 0 1.2em;
}

.debug-info li {
    margin-bottom: 0.3em;
}

.debug-info strong {
    color: #222;
}

.debug-info .discount {
    color: #1ca14e;
    font-weight: 500;
}

.debug-info .surcharge {
    color: #e67e22;
    font-weight: 500;
}

.debug-info .price-discount {
    color: #1ca14e;
    font-weight: 500;
}

.debug-info .price-surcharge {
    color: #e67e22;
    font-weight: 500;
}

.price-breakdown .price-item,
.price-breakdown .hourly-price,
.debug-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5em;
}

.price-breakdown .price,
.price-breakdown .discount,
.price-breakdown .surcharge,
.price-breakdown .price-discount,
.price-breakdown .price-surcharge,
.debug-info .discount,
.debug-info .surcharge,
.debug-info .price-discount,
.debug-info .price-surcharge {
    margin-left: auto;
    min-width: 80px;
    text-align: right;
}

.price-breakdown .hourly-price .discount {
    margin-left: 1em;
}

.price-breakdown .total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    color: #222;
    border-top: 2px solid #e9ecef;
    padding-top: 1rem;
}

/* Required Field Indicator */
.form-group label::after {
    content: ' *';
    color: var(--pb-offerte-error-color, #dc3545);
    font-size: 0.75rem;
}

/* Verwijder het sterretje in het veld zelf */
-.photobooth-offerte-form label[for] + input[required]::before,
-.photobooth-offerte-form label[for] + select[required]::before {
-    content: '*';
-    color: #e53935;
-    margin-left: 4px;
-    font-size: 1em;
-    font-weight: bold;
-}

.image-upload-container {
    margin-bottom: 10px;
}

.image-upload-container .image-preview {
    margin: 10px 0;
    min-height: 50px;
}

.image-upload-container .button {
    margin-right: 10px;
}

.image-upload-container .remove-image-button {
    color: #dc3232;
}

.image-upload-container .remove-image-button:hover {
    color: #dc3232;
    border-color: #dc3232;
} 