/**
 * Rapidfix Booking - Frontend Form Styles
 * Modern, animated, fully responsive design.
 */

/* ---------- CSS Variables (overridden by PHP per-settings) ---------- */
.rapidfix-booking-wrapper {
    --rfx-primary: #0e4b5a;
    --rfx-primary-dark: #083441;
    --rfx-primary-light: rgba(14, 75, 90, 0.1);
    --rfx-accent: #f59e0b;
    --rfx-success: #10b981;
    --rfx-error: #ef4444;
    --rfx-warning: #f59e0b;
    --rfx-text: #1f2937;
    --rfx-text-muted: #6b7280;
    --rfx-bg: #ffffff;
    --rfx-bg-alt: #f9fafb;
    --rfx-border: #e5e7eb;
    --rfx-border-hover: #cbd5e1;
    --rfx-radius: 14px;
    --rfx-radius-sm: 8px;
    --rfx-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    --rfx-shadow-hover: 0 14px 50px rgba(0, 0, 0, 0.12);
    --rfx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--rfx-text);
    line-height: 1.5;
    box-sizing: border-box;
    max-width: 900px;
    margin: 30px auto;
    padding: 0 16px;
}

.rapidfix-booking-wrapper *,
.rapidfix-booking-wrapper *::before,
.rapidfix-booking-wrapper *::after {
    box-sizing: border-box;
}

/* ---------- Container ---------- */
.rfx-booking-container {
    background: var(--rfx-bg);
    border-radius: var(--rfx-radius);
    box-shadow: var(--rfx-shadow);
    overflow: hidden;
    position: relative;
    animation: rfxFadeInUp 0.6s ease-out;
}

@keyframes rfxFadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Header ---------- */
.rfx-header {
    background: linear-gradient(135deg, var(--rfx-primary) 0%, var(--rfx-primary-dark) 100%);
    padding: 40px 30px 50px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.rfx-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: rfxFloat 20s ease-in-out infinite;
}

.rfx-header::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    animation: rfxFloat 25s ease-in-out infinite reverse;
}

@keyframes rfxFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.rfx-header-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    animation: rfxPulse 3s ease-in-out infinite;
}

.rfx-header-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

@keyframes rfxPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rfx-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.rfx-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ---------- Progress Bar ---------- */
.rfx-progress {
    background: var(--rfx-bg-alt);
    padding: 24px 30px 20px;
    border-bottom: 1px solid var(--rfx-border);
    margin-top: -16px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    z-index: 2;
}

.rfx-progress-bar {
    height: 6px;
    background: var(--rfx-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
}

.rfx-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rfx-primary), var(--rfx-accent));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.rfx-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: rfxShimmer 2s infinite;
}

@keyframes rfxShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.rfx-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.rfx-step-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: var(--rfx-transition);
}

.rfx-step-indicator.active {
    opacity: 1;
}

.rfx-step-indicator.completed {
    opacity: 1;
}

.rfx-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rfx-bg);
    border: 2px solid var(--rfx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--rfx-text-muted);
    transition: var(--rfx-transition);
}

.rfx-step-indicator.active .rfx-step-number {
    background: var(--rfx-primary);
    border-color: var(--rfx-primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--rfx-primary-light);
    transform: scale(1.1);
}

.rfx-step-indicator.completed .rfx-step-number {
    background: var(--rfx-success);
    border-color: var(--rfx-success);
    color: #fff;
}

.rfx-step-indicator.completed .rfx-step-number::before {
    content: '✓';
    font-size: 16px;
}

.rfx-step-indicator.completed .rfx-step-number {
    font-size: 0;
}

.rfx-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--rfx-text-muted);
    text-align: center;
}

.rfx-step-indicator.active .rfx-step-label {
    color: var(--rfx-primary);
    font-weight: 600;
}

/* ---------- Form ---------- */
.rfx-form {
    position: relative;
    min-height: 400px;
}

.rfx-step {
    display: none;
    padding: 30px;
    animation: rfxStepIn 0.4s ease-out;
}

.rfx-step-active {
    display: block;
}

@keyframes rfxStepIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes rfxStepOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

.rfx-step-content {
    margin-bottom: 30px;
}

.rfx-step-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--rfx-text);
}

.rfx-step-desc {
    font-size: 14px;
    color: var(--rfx-text-muted);
    margin: 0 0 24px;
}

/* ---------- Service Cards ---------- */
.rfx-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.rfx-service-card {
    cursor: pointer;
    display: block;
    position: relative;
}

.rfx-service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rfx-service-card-inner {
    border: 2px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    padding: 18px;
    background: var(--rfx-bg);
    transition: var(--rfx-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.rfx-service-card-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--rfx-primary), var(--rfx-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.rfx-service-card:hover .rfx-service-card-inner {
    border-color: var(--rfx-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--rfx-shadow);
}

.rfx-service-card:hover .rfx-service-card-inner::before {
    transform: scaleX(1);
}

.rfx-service-card input[type="radio"]:checked + .rfx-service-card-inner {
    border-color: var(--rfx-primary);
    background: var(--rfx-primary-light);
    box-shadow: 0 0 0 4px var(--rfx-primary-light);
}

.rfx-service-card input[type="radio"]:checked + .rfx-service-card-inner::before {
    transform: scaleX(1);
}

.rfx-service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--rfx-primary-light);
    color: var(--rfx-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--rfx-transition);
}

.rfx-service-icon svg {
    width: 24px;
    height: 24px;
}

.rfx-service-card:hover .rfx-service-icon {
    transform: rotate(-5deg) scale(1.05);
}

.rfx-service-card input[type="radio"]:checked + .rfx-service-card-inner .rfx-service-icon {
    background: var(--rfx-primary);
    color: #fff;
}

.rfx-service-body {
    flex: 1;
}

.rfx-service-name {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--rfx-text);
}

.rfx-service-desc {
    font-size: 13px;
    color: var(--rfx-text-muted);
    margin: 0 0 10px;
    line-height: 1.45;
}

.rfx-service-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rfx-service-price {
    background: var(--rfx-accent);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.rfx-service-duration {
    font-size: 12px;
    color: var(--rfx-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.rfx-service-check {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--rfx-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: var(--rfx-transition);
}

.rfx-service-check svg {
    width: 14px;
    height: 14px;
}

.rfx-service-card input[type="radio"]:checked + .rfx-service-card-inner .rfx-service-check {
    opacity: 1;
    transform: scale(1);
}

/* ---------- Form Fields ---------- */
.rfx-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.rfx-datetime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.rfx-field-full {
    grid-column: 1 / -1;
}

.rfx-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rfx-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rfx-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rfx-label svg {
    color: var(--rfx-text-muted);
}

.rfx-required {
    color: var(--rfx-error);
    font-weight: 700;
}

.rfx-optional {
    color: var(--rfx-text-muted);
    font-weight: 400;
    font-size: 12px;
}

.rfx-input,
.rfx-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    font-size: 14px;
    color: var(--rfx-text);
    background: var(--rfx-bg);
    transition: var(--rfx-transition);
    font-family: inherit;
    outline: none;
}

.rfx-input:hover,
.rfx-textarea:hover {
    border-color: var(--rfx-border-hover);
}

.rfx-input:focus,
.rfx-textarea:focus {
    border-color: var(--rfx-primary);
    box-shadow: 0 0 0 4px var(--rfx-primary-light);
}

.rfx-input::placeholder,
.rfx-textarea::placeholder {
    color: var(--rfx-text-muted);
    opacity: 0.6;
}

.rfx-textarea {
    resize: vertical;
    min-height: 80px;
}

.rfx-input.rfx-has-error,
.rfx-textarea.rfx-has-error {
    border-color: var(--rfx-error);
    background: rgba(239, 68, 68, 0.04);
}

.rfx-field-error {
    font-size: 12px;
    color: var(--rfx-error);
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    animation: rfxShake 0.4s ease-in-out;
}

.rfx-field-error:empty {
    display: none;
}

@keyframes rfxShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ---------- Time Slots ---------- */
.rfx-slots-container {
    min-height: 150px;
    padding: 16px;
    border: 2px dashed var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    background: var(--rfx-bg-alt);
}

.rfx-slots-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    color: var(--rfx-text-muted);
    padding: 20px 0;
}

.rfx-slots-placeholder svg {
    opacity: 0.5;
}

.rfx-slots-placeholder p {
    margin: 0;
    font-size: 13px;
}

.rfx-slots-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 0;
    color: var(--rfx-text-muted);
}

.rfx-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--rfx-border);
    border-top-color: var(--rfx-primary);
    border-radius: 50%;
    animation: rfxSpin 0.8s linear infinite;
}

@keyframes rfxSpin {
    to { transform: rotate(360deg); }
}

.rfx-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
}

.rfx-slot {
    padding: 10px 8px;
    background: var(--rfx-bg);
    border: 2px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--rfx-text);
    cursor: pointer;
    text-align: center;
    transition: var(--rfx-transition);
    position: relative;
    overflow: hidden;
    animation: rfxSlotIn 0.3s ease-out backwards;
}

@keyframes rfxSlotIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.rfx-slot:hover:not(.rfx-slot-booked):not(.rfx-slot-past) {
    border-color: var(--rfx-primary);
    color: var(--rfx-primary);
    transform: translateY(-2px);
}

.rfx-slot.rfx-slot-selected {
    background: var(--rfx-primary);
    border-color: var(--rfx-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.rfx-slot.rfx-slot-booked,
.rfx-slot.rfx-slot-past {
    background: var(--rfx-bg-alt);
    color: var(--rfx-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    text-decoration: line-through;
    position: relative;
}

.rfx-slot.rfx-slot-booked::after {
    content: '🔒';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
}

.rfx-slot-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 20px;
    color: var(--rfx-text-muted);
    font-size: 14px;
}

.rfx-slot-empty-icon {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ---------- Summary Card ---------- */
.rfx-summary-card {
    background: linear-gradient(135deg, var(--rfx-bg-alt) 0%, #fff 100%);
    border: 2px solid var(--rfx-border);
    border-radius: var(--rfx-radius-sm);
    padding: 24px;
    animation: rfxFadeInUp 0.4s ease-out;
}

.rfx-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--rfx-border);
}

.rfx-summary-row:last-child {
    border-bottom: none;
}

.rfx-summary-label {
    font-size: 13px;
    color: var(--rfx-text-muted);
    font-weight: 500;
}

.rfx-summary-value {
    font-size: 14px;
    color: var(--rfx-text);
    font-weight: 600;
    text-align: right;
}

.rfx-summary-divider {
    height: 1px;
    background: var(--rfx-border);
    margin: 8px 0;
}

/* ---------- Actions / Buttons ---------- */
.rfx-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 30px 30px;
    border-top: 1px solid var(--rfx-border);
    background: var(--rfx-bg-alt);
    margin: 0 -30px -30px;
}

.rfx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--rfx-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--rfx-transition);
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.rfx-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px var(--rfx-primary-light);
}

.rfx-btn-primary {
    background: var(--rfx-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.rfx-btn-primary:hover {
    background: var(--rfx-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.rfx-btn-ghost {
    background: transparent;
    color: var(--rfx-text-muted);
    border: 2px solid var(--rfx-border);
}

.rfx-btn-ghost:hover {
    border-color: var(--rfx-border-hover);
    color: var(--rfx-text);
    background: var(--rfx-bg);
}

.rfx-btn-submit {
    background: linear-gradient(135deg, var(--rfx-success) 0%, #059669 100%);
    color: #fff;
    padding: 14px 28px;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
    min-width: 180px;
    position: relative;
}

.rfx-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.rfx-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.rfx-btn-submit .rfx-btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: rfxSpin 0.8s linear infinite;
}

.rfx-btn-submit.rfx-loading .rfx-btn-text {
    display: none;
}

.rfx-btn-submit.rfx-loading .rfx-btn-loader {
    display: inline-block;
}

/* Ripple effect for buttons */
.rfx-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.rfx-btn:active::before {
    width: 300px;
    height: 300px;
}

/* ---------- Form Messages ---------- */
.rfx-form-message {
    margin: 0 30px 20px;
    padding: 14px 18px;
    border-radius: var(--rfx-radius-sm);
    font-size: 14px;
    display: none;
    animation: rfxFadeInUp 0.3s ease-out;
}

.rfx-form-message.rfx-message-error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--rfx-error);
    border-left: 4px solid var(--rfx-error);
}

.rfx-form-message.rfx-message-warning {
    display: block;
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
    border-left: 4px solid var(--rfx-warning);
}

.rfx-form-message.rfx-message-success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border-left: 4px solid var(--rfx-success);
}

/* ---------- Honeypot ---------- */
.rfx-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    visibility: hidden;
    height: 0;
    width: 0;
    overflow: hidden;
}

/* ---------- Success State ---------- */
.rfx-success-step {
    text-align: center;
    padding: 60px 30px !important;
}

.rfx-success-content {
    animation: rfxFadeInUp 0.5s ease-out;
}

.rfx-success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
}

.rfx-success-icon svg {
    width: 100%;
    height: 100%;
}

.rfx-success-circle {
    stroke: var(--rfx-success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: rfxSuccessCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.rfx-success-check {
    stroke: var(--rfx-success);
    stroke-width: 3;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: rfxSuccessCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes rfxSuccessCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes rfxSuccessCheck {
    to { stroke-dashoffset: 0; }
}

.rfx-success-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--rfx-success);
    margin: 0 0 10px;
}

.rfx-success-message {
    font-size: 15px;
    color: var(--rfx-text-muted);
    max-width: 500px;
    margin: 0 auto 12px;
    line-height: 1.6;
}

.rfx-success-booking-id {
    font-size: 14px;
    color: var(--rfx-text);
    font-weight: 600;
    margin: 0 0 24px;
    padding: 10px 20px;
    background: var(--rfx-bg-alt);
    border-radius: 30px;
    display: inline-block;
}

/* ---------- Empty State ---------- */
.rfx-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: var(--rfx-text-muted);
    background: var(--rfx-bg-alt);
    border-radius: var(--rfx-radius-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .rapidfix-booking-wrapper {
        margin: 15px auto;
        padding: 0 10px;
    }

    .rfx-header {
        padding: 30px 20px 40px;
    }

    .rfx-title {
        font-size: 22px;
    }

    .rfx-subtitle {
        font-size: 13px;
    }

    .rfx-progress {
        padding: 20px 20px 16px;
    }

    .rfx-step-label {
        font-size: 10px;
    }

    .rfx-step {
        padding: 24px 20px;
    }

    .rfx-step-title {
        font-size: 18px;
    }

    .rfx-services-grid {
        grid-template-columns: 1fr;
    }

    .rfx-form-grid,
    .rfx-datetime-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .rfx-actions {
        margin: 0 -20px -24px;
        padding: 16px 20px 20px;
        flex-direction: column-reverse;
    }

    .rfx-btn {
        width: 100%;
    }

    .rfx-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .rfx-slot {
        padding: 8px 6px;
        font-size: 12px;
    }

    .rfx-form-message {
        margin: 0 20px 16px;
    }
}

@media (max-width: 480px) {
    .rfx-step-label {
        display: none;
    }

    .rfx-step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .rfx-summary-card {
        padding: 16px;
    }

    .rfx-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .rfx-summary-value {
        text-align: left;
    }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
    .rapidfix-booking-wrapper *,
    .rapidfix-booking-wrapper *::before,
    .rapidfix-booking-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.rfx-input:focus-visible,
.rfx-textarea:focus-visible,

/* ================================================================
   QUICK BOOKING FORM v4 — Supplementary styles
   (Critical layout/bg/padding is INLINE in the template HTML.
    This file adds animations, hover states, focus, responsive.)
   ================================================================ */

/* Reset scope */
.rfx-quick-wrapper *,
.rfx-quick-wrapper *::before,
.rfx-quick-wrapper *::after{
    box-sizing:border-box;
}

/* Card entrance */
.rfx-quick-wrapper .rfx-quick-card{
    animation:rfxQCard 0.7s cubic-bezier(0.4,0,0.2,1) both;
}
@keyframes rfxQCard{
    from{opacity:0; transform:translateY(20px);}
    to{opacity:1; transform:translateY(0);}
}

/* Gradient bar loop */
@keyframes rfxQBar{
    0%,100%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
}

/* Pulsing ping on eyebrow dot */
@keyframes rfxQPing{
    0%{transform:scale(1); opacity:0.7;}
    75%,100%{transform:scale(3); opacity:0;}
}

/* Staggered row entrance */
.rfx-quick-wrapper .rfx-quick-row,
.rfx-quick-wrapper .rfx-quick-field{
    animation:rfxQRowIn 0.5s cubic-bezier(0.4,0,0.2,1) both;
}
.rfx-quick-wrapper .rfx-quick-row:nth-of-type(1){animation-delay:0.45s;}
.rfx-quick-wrapper .rfx-quick-row:nth-of-type(2){animation-delay:0.55s;}
.rfx-quick-wrapper .rfx-quick-row:nth-of-type(3){animation-delay:0.65s;}
.rfx-quick-wrapper .rfx-quick-form > .rfx-quick-field{animation-delay:0.75s;}
.rfx-quick-wrapper .rfx-quick-cta{animation:rfxQRowIn 0.5s cubic-bezier(0.4,0,0.2,1) 0.85s both;}
@keyframes rfxQRowIn{
    from{opacity:0; transform:translateY(10px);}
    to{opacity:1; transform:translateY(0);}
}

/* ---------- Input focus states ---------- */
.rfx-quick-wrapper .rfx-quick-input:hover:not(:focus):not(:disabled){
    background:#e2e8f0 !important;
}
.rfx-quick-wrapper.rfx-quick-theme-dark .rfx-quick-input:hover:not(:focus):not(:disabled){
    background:rgba(255,255,255,0.08) !important;
    border-color:rgba(255,255,255,0.18) !important;
}
.rfx-quick-wrapper .rfx-quick-input:focus{
    background:#ffffff !important;
    border-color:#0e4b5a !important;
    box-shadow:0 0 0 4px rgba(14,75,90,0.15) !important;
}
.rfx-quick-wrapper.rfx-quick-theme-dark .rfx-quick-input:focus{
    background:rgba(255,255,255,0.1) !important;
    border-color:rgba(255,255,255,0.5) !important;
    box-shadow:0 0 0 4px rgba(255,255,255,0.1) !important;
}
.rfx-quick-wrapper .rfx-quick-input:disabled{
    opacity:0.6;
    cursor:not-allowed;
}
.rfx-quick-wrapper .rfx-quick-input::placeholder{
    color:#94a3b8;
    opacity:1;
    font-weight:500;
}
.rfx-quick-wrapper.rfx-quick-theme-dark .rfx-quick-input::placeholder{
    color:rgba(255,255,255,0.5);
}

/* Error state */
.rfx-quick-wrapper .rfx-quick-input.rfx-has-error{
    border-color:#dc2626 !important;
    background:rgba(220,38,38,0.05) !important;
    animation:rfxQShake 0.4s;
}
.rfx-quick-wrapper .rfx-quick-input.rfx-has-error:focus{
    box-shadow:0 0 0 4px rgba(220,38,38,0.15) !important;
}
@keyframes rfxQShake{
    0%,100%{transform:translateX(0);}
    20%{transform:translateX(-5px);}
    40%{transform:translateX(5px);}
    60%{transform:translateX(-3px);}
    80%{transform:translateX(3px);}
}

/* Error message show */
.rfx-quick-wrapper .rfx-quick-err:not(:empty){
    display:block !important;
    animation:rfxQErrIn 0.25s ease-out;
}
@keyframes rfxQErrIn{
    from{opacity:0; transform:translateY(-2px);}
    to{opacity:1; transform:translateY(0);}
}

/* Form message */
.rfx-quick-wrapper .rfx-quick-msg:not(:empty){
    display:block !important;
    padding:12px 16px !important;
    animation:rfxQErrIn 0.3s ease-out;
}
.rfx-quick-wrapper .rfx-quick-msg.is-error{
    background:rgba(220,38,38,0.08) !important;
    color:#991b1b !important;
    border-left:3px solid #dc2626 !important;
}
.rfx-quick-wrapper .rfx-quick-msg.is-warning{
    background:rgba(245,158,11,0.1) !important;
    color:#92400e !important;
    border-left:3px solid #f59e0b !important;
}
.rfx-quick-wrapper.rfx-quick-theme-dark .rfx-quick-msg.is-error{
    background:rgba(220,38,38,0.15) !important;
    color:#fca5a5 !important;
}

/* Time loader */
.rfx-quick-wrapper .rfx-quick-time-loader.is-active{
    display:flex !important;
    align-items:center;
}
@keyframes rfxQDot{
    0%,80%,100%{transform:scale(0.55); opacity:0.4;}
    40%{transform:scale(1); opacity:1;}
}

/* ---------- CTA button ---------- */
.rfx-quick-wrapper .rfx-quick-cta::before{
    content:'';
    position:absolute;
    top:0;
    left:-120%;
    width:60%;
    height:100%;
    background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,0.22) 50%,transparent 100%);
    transform:skewX(-20deg);
    transition:left 0.8s cubic-bezier(0.4,0,0.2,1);
    pointer-events:none;
    z-index:1;
}
.rfx-quick-wrapper .rfx-quick-cta:hover:not(:disabled){
    transform:translateY(-2px) !important;
    filter:brightness(1.08) !important;
    box-shadow:0 22px 48px -10px rgba(0,0,0,.35),0 8px 18px -4px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,0.2) !important;
}
.rfx-quick-wrapper .rfx-quick-cta:hover::before{
    left:140%;
}
.rfx-quick-wrapper .rfx-quick-cta:active:not(:disabled){
    transform:translateY(0) !important;
}
.rfx-quick-wrapper .rfx-quick-cta:hover:not(:disabled) .rfx-quick-cta-arrow{
    transform:translateX(5px) !important;
}
.rfx-quick-wrapper .rfx-quick-cta:disabled{
    opacity:0.85;
    cursor:wait;
}

/* Loading state */
.rfx-quick-wrapper .rfx-quick-cta.is-loading .rfx-quick-cta-text{opacity:0 !important;}
.rfx-quick-wrapper .rfx-quick-cta.is-loading .rfx-quick-cta-loader{opacity:1 !important;}
@keyframes rfxQSpin{to{transform:rotate(360deg);}}

/* Ghost button hover — inherits border color from inline style */
.rfx-quick-wrapper .rfx-quick-cta-ghost:hover:not(:disabled){
    filter:brightness(1.05) !important;
    transform:translateY(-1px) !important;
}

/* Success animations already inline via animation property */
@keyframes rfxQRing{to{stroke-dashoffset:0;}}
@keyframes rfxQTick{to{stroke-dashoffset:0;}}

/* Date picker icon */
.rfx-quick-wrapper .rfx-quick-input-date::-webkit-calendar-picker-indicator{
    cursor:pointer;
    opacity:0.55;
    filter:invert(22%) sepia(15%) saturate(990%) hue-rotate(156deg) brightness(94%) contrast(88%);
    margin-left:6px;
}
.rfx-quick-wrapper .rfx-quick-input-date:focus::-webkit-calendar-picker-indicator{opacity:1;}
.rfx-quick-wrapper.rfx-quick-theme-dark .rfx-quick-input-date::-webkit-calendar-picker-indicator{
    filter:invert(0.9);
    opacity:0.7;
}

/* Select options (visible inside native dropdown) */
.rfx-quick-wrapper .rfx-quick-select option{
    color:#0f172a;
    background:#ffffff;
    font-weight:500;
    padding:8px;
}
.rfx-quick-wrapper.rfx-quick-theme-dark .rfx-quick-select option{
    color:#ffffff;
    background:#0f2530;
}

/* Select box on IE/Edge */
.rfx-quick-wrapper .rfx-quick-select::-ms-expand{display:none;}

/* Honeypot extra safety */
.rfx-quick-wrapper .rfx-quick-hp,
.rfx-quick-wrapper .rfx-quick-hp *{
    position:absolute !important;
    left:-99999px !important;
    top:-99999px !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
    visibility:hidden !important;
}

/* Success state visible */
.rfx-quick-wrapper [data-state="success"]:not([hidden]){
    display:block !important;
    animation:rfxQSuccessIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes rfxQSuccessIn{
    from{opacity:0; transform:scale(0.92);}
    to{opacity:1; transform:scale(1);}
}

/* ---------- Responsive ---------- */
@media (max-width:560px){
    .rfx-quick-wrapper .rfx-quick-card{
        padding:28px 22px !important;
        border-radius:18px !important;
    }
}
@media (max-width:400px){
    .rfx-quick-wrapper .rfx-quick-card{
        padding:24px 18px !important;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
    .rfx-quick-wrapper *,
    .rfx-quick-wrapper *::before,
    .rfx-quick-wrapper *::after{
        animation-duration:0.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:0.01ms !important;
    }
}

/* Focus visible */
.rfx-quick-wrapper .rfx-quick-input:focus-visible,
.rfx-quick-wrapper .rfx-quick-cta:focus-visible{
    outline:3px solid #0e4b5a;
    outline-offset:2px;
}
