/* assets/css/style.css */
.epq-plugin-wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.epq-plugin-wrapper * {
    box-sizing: border-box;
}

.epq-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.epq-screen {
    animation: epqFadeIn 0.4s ease forwards;
}

@keyframes epqFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.epq-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1a1a1a;
    line-height: 1.2;
}

.epq-form-group {
    margin-bottom: 24px;
    position: relative;
}

.epq-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #4a4a4a;
}

.epq-required {
    color: #ef405b;
}

.epq-form-group input,
.epq-form-group select {
    width: 100%;
    padding: 0 16px;
    height: 50px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: #1a1a1a;
    appearance: none;
    -webkit-appearance: none;
}

.epq-form-group input:hover,
.epq-form-group select:hover {
    border-color: #9ca3af;
}

.epq-form-group select {
    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='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.epq-form-group input:focus,
.epq-form-group select:focus {
    border-color: #ef405b;
    box-shadow: 0 0 0 4px rgba(239, 64, 91, 0.1);
    background-color: #fff;
}

.epq-row {
    display: flex;
    gap: 16px;
}

.epq-col {
    flex: 1;
}

.epq-btn {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.epq-btn-primary {
    background-color: #ef405b;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 64, 91, 0.3);
}

.epq-btn-primary:hover {
    background-color: #d83149;
    box-shadow: 0 6px 16px rgba(239, 64, 91, 0.4);
    transform: translateY(-1px);
}

.epq-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(239, 64, 91, 0.3);
}

.epq-btn:disabled {
    background-color: #cccccc !important;
    box-shadow: none !important;
    cursor: not-allowed;
    transform: none !important;
}

.epq-error {
    color: #ef405b;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

#epq-time-error {
    margin-top: -16px;
    margin-bottom: 20px;
}

/* Screen 2 / Summary Card */
.epq-header-with-back {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.epq-btn-back {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-right: 12px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.epq-btn-back:hover {
    background: #f0f0f0;
    color: #333;
}

.epq-summary-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.epq-summary-detail {
    font-size: 15px;
    margin-bottom: 12px;
    color: #4a4a4a;
}

.epq-summary-detail strong {
    color: #1a1a1a;
}

.epq-time-adj-container {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.epq-time-adj {
    flex: 1;
}

.epq-time-adj label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 6px;
}

.epq-adj-select {
    width: 100%;
    padding: 0 32px 0 10px;
    height: 44px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #ffffff;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    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='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    transition: all 0.2s ease;
}

.epq-adj-select:hover {
    border-color: #9ca3af;
}

.epq-adj-select:focus {
    border-color: #ef405b;
    box-shadow: 0 0 0 4px rgba(239, 64, 91, 0.1);
}

.epq-breakdown {
    border-top: 1px dashed #d1d5db;
    padding-top: 16px;
    margin-top: 16px;
}

.epq-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    color: #4a4a4a;
}

.epq-subtotal-row {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 2px solid #e5e7eb;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.epq-gst-row {
    display: flex;
    justify-content: space-between;
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

.epq-total-row {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 600px) {
    .epq-row {
        flex-direction: column;
    }

    .epq-time-adj-container {
        flex-direction: column;
        gap: 12px;
    }

    .epq-container {
        padding: 20px;
        border-radius: 8px;
    }
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #e5e7eb !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #ef405b !important;
    border-color: #ef405b !important;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday {
    font-weight: 600 !important;
}