/* Egantica Showroom Booking - Frontend Styles */

.eshb-wrapper {
    max-width: 700px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eshb-form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Sections */
.eshb-section {
    margin-bottom: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.eshb-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.eshb-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d4e5f;
    margin-bottom: 16px;
}

/* Form rows */
.eshb-form-row {
    margin-bottom: 18px;
}

.eshb-form-row:last-child {
    margin-bottom: 0;
}

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

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

/* Form groups */
.eshb-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.eshb-required {
    color: #e53935;
}

.eshb-form-group input,
.eshb-form-group select,
.eshb-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.eshb-form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    line-height: 1.5;
}

.eshb-form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.eshb-form-group input:focus,
.eshb-form-group select:focus,
.eshb-form-group textarea:focus {
    outline: none;
    border-color: #1d4e5f;
    box-shadow: 0 0 0 3px rgba(29,78,95,0.1);
}

.eshb-form-group input::placeholder,
.eshb-form-group textarea::placeholder {
    color: #aaa;
}

.eshb-form-group input.eshb-error,
.eshb-form-group select.eshb-error,
.eshb-form-group textarea.eshb-error {
    border-color: #e53935;
}

/* Submit button */
.eshb-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #f0a030;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.eshb-submit-btn:hover {
    background: #1d4e5f;
    transform: translateY(-1px);
}

.eshb-submit-btn:active {
    transform: translateY(0);
}

.eshb-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.eshb-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: eshb-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes eshb-spin {
    to { transform: rotate(360deg); }
}

/* Messages */
.eshb-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.eshb-message.eshb-message-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}

.eshb-message.eshb-message-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Success state */
.eshb-success {
    text-align: center;
    padding: 40px 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.eshb-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f0a030;
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.eshb-success h3 {
    font-size: 22px;
    color: #333;
    margin: 0 0 10px;
}

.eshb-success p {
    font-size: 15px;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.5;
}

.eshb-success-reminder {
    font-size: 13px !important;
    color: #888 !important;
    font-style: italic;
}

.eshb-new-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1d4e5f;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.eshb-new-btn:hover {
    background: #f0a030;
}

/* Flatpickr tweaks */
.eshb-form-group .flatpickr-input {
    background-color: #fff;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .eshb-form {
        padding: 20px 15px;
    }

    .eshb-form-row-2,
    .eshb-form-row-3 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
