/* WiFi Rental Form - New Color Scheme */
/* Based on Tailwind CSS custom design system */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    /* Base colors - using HSL format for compatibility */
    --background: 220 20% 97%;
    --foreground: 220 30% 10%;

    --card: 0 0% 100%;
    --card-foreground: 220 30% 10%;

    --popover: 0 0% 100%;
    --popover-foreground: 220 30% 10%;

    --primary: 25 90% 40%;
    --primary-foreground: 0 0% 100%;

    --secondary: 220 20% 94%;
    --secondary-foreground: 220 25% 20%;

    --muted: 220 14% 93%;
    --muted-foreground: 220 10% 52%;

    --accent: 25 88% 54%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 72% 55%;
    --destructive-foreground: 0 0% 100%;

    --border: 220 18% 90%;
    --input: 220 18% 90%;
    --ring: 25 90% 40%;

    --radius: 0.875rem;

    /* Custom tokens */
    --gradient-hero: linear-gradient(160deg, hsl(25 80% 18%) 0%, hsl(30 70% 10%) 100%);
    --gradient-step-active: linear-gradient(135deg, hsl(25 90% 40%), hsl(35 80% 52%));
    --gradient-card: linear-gradient(160deg, hsl(0 0% 100%) 0%, hsl(220 20% 98%) 100%);
    --shadow-card: 0 4px 24px -4px hsl(220 30% 10% / 0.08), 0 1px 4px hsl(220 30% 10% / 0.04);
    --shadow-card-hover: 0 8px 32px -6px hsl(220 30% 10% / 0.12), 0 2px 8px hsl(220 30% 10% / 0.06);
    --shadow-input: 0 1px 3px hsl(220 30% 10% / 0.06);
    --shadow-button: 0 4px 18px hsl(25 90% 40% / 0.4);
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Legacy support */
    --morend-primary: hsl(25 90% 40%);
    --morend-secondary: 220 20% 94%;
    --morend-accent: hsl(25 88% 54%);
    --morend-dark: hsl(220 30% 10%);
    --morend-light: hsl(220 20% 97%);
    --morend-gradient-start: hsl(25 90% 40%);
    --morend-gradient-end: hsl(35 80% 30%);
    --morend-gold: hsl(220 10% 52%);
    --morend-error: hsl(0 72% 55%);
    --morend-success: hsl(142 71% 45%);
}

/* Base styles */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
}

/* Form Container */
.rental-form {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px;
    background: linear-gradient(165deg, #f0f3fa 0%, #eff2f9 30%, #f1f1f9 60%, #f0f1f6 100%);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid hsl(var(--border));
    position: relative;
    overflow: visible;
    z-index: 1;
}

/* Mobile form container - prevent overflow */
@media (max-width: 400px) {
    .rental-form {
        padding: 16px;
        border-radius: 16px;
        overflow-x: hidden;
    }
}

/* Animations */
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Progress Bar - Grid Layout for Equal Spacing */
.form-progress {
    margin-bottom: 32px;
    padding: 0;
}

/* Use CSS Grid for equal spacing */
.form-progress .flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    width: 100%;
    gap: 0;
}

/* Step items (1, 3, 5, 7) - the icons */
.form-progress .flex > div:nth-child(1),
.form-progress .flex > div:nth-child(3),
.form-progress .flex > div:nth-child(5),
.form-progress .flex > div:nth-child(7) {
    justify-self: center;
}

/* Progress lines (2, 4, 6) - between steps */
.form-progress .flex > div:nth-child(2),
.form-progress .flex > div:nth-child(4),
.form-progress .flex > div:nth-child(6) {
    justify-self: stretch;
    width: 100%;
}

/* Step indicator wrapper */
.step-indicator-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

/* The circular icon */
.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 700;
    flex-shrink: 0;
}

.step-indicator svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Active step */
.step-indicator-active {
    background: linear-gradient(135deg, hsl(25 90% 40%), hsl(35 80% 52%));
    color: white;
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.35);
}

.step-indicator-active svg { stroke: white; }

/* Completed step */
.step-indicator-done {
    background: hsl(25 90% 40%);
    color: white;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
}

.step-indicator-done svg { stroke: white; }

/* Pending step */
.step-indicator-pending {
    background: hsl(210 60% 93%);
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.step-indicator-pending svg { stroke: hsl(210 80% 45%); opacity: 0.8; }

/* Step label */
.step-label {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.step-label-active { color: hsl(25 90% 40%); }
.step-label-pending { color: hsl(220 10% 52%); }

/* Progress lines */
.progress-line {
    height: 3px;
    min-width: 100px;
    width: 100%;
    background: hsl(220 18% 90%);
    border-radius: 2px;
    display: block;
    align-self: center;
}

.progress-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, hsl(25 90% 40%), hsl(35 80% 52%));
    border-radius: 2px;
    transition: width 0.4s ease;
    display: block;
}

.progress-line-fill.completed { width: 100%; }

/* Hide old */
.form-progress .progress-track, .form-progress .progress-labels, .progress-fill { display: none !important; }

/* Hide Location step on both mobile and desktop */
/* On mobile, also reduce grid columns */
@media (max-width: 500px) {
    .form-progress .flex {
        grid-template-columns: 1fr auto 1fr auto 1fr;
    }
}

/* Hide Location step (element 5 - the step indicator, element 6 - the progress line) on all screen sizes */
.form-progress .flex > div:nth-child(5),
.form-progress .flex > div:nth-child(6) {
    display: none;
}

/* Flex layout for step containers */
.form-progress .flex > div {
    display: flex;
    align-items: center;
}

/* Make sure the payment step (last) also stretches */
.form-progress .flex > div:last-child {
    flex: 1 1 auto !important;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-row > .form-group,
.form-col {
    flex: 1;
    min-width: 0;
}

/* Form Labels */
.form-label {
    display: block !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 8px !important;
    position: relative !important;
}

.form-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 16px;
    height: 2px;
    background: hsl(var(--primary));
    border-radius: 1px;
}

/* Form Inputs */
.form-input {
    width: 100% !important;
    padding: 14px 18px !important;
    border-radius: 14px !important;
    border: 2px solid #cdd7dc !important;
    background: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-input) !important;
    font-family: var(--font-body) !important;
    height: auto !important;
}

.form-input:focus {
    outline: none !important;
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1), var(--shadow-input) !important;
    transform: translateY(-1px) !important;
    background: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
}

.form-input:focus::placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
}

.form-input:hover:not(:focus) {
    border-color: hsl(var(--primary) / 0.5);
}

.form-input::placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
}

/* Select inputs */
.form-input[type="select"],
select.form-input {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

.form-input[type="select"]:focus,
select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
}

/* Date inputs - now using type="text" for consistent custom calendar */
.form-input[type="date"],
.form-input.date-input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    cursor: pointer !important;
    /* Use inline SVG data URI for better mobile compatibility */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 18px !important;
    padding-left: 42px !important;
}

/* Ensure date input shows placeholder on mobile - use !important to override plugin styles */
.form-input[type="date"]::-webkit-input-placeholder,
.form-input.date-input::-webkit-input-placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
}

.form-input[type="date"]::-moz-placeholder,
.form-input.date-input::-moz-placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
}

.form-input[type="date"]:-ms-input-placeholder,
.form-input.date-input:-ms-input-placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
}

/* Ensure calendar icon is visible - higher specificity to override plugin CSS */
/* Using inline SVG data URI for maximum mobile compatibility */
html body .form-input[type="date"],
html body .form-input.date-input,
.rental-form .form-input[type="date"],
.rental-form .form-input.date-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background-repeat: no-repeat !important;
    background-position: left 14px center !important;
    background-size: 18px !important;
}

/* Override potential plugin styles that hide date input content */
.date-input-wrapper .form-input[type="date"],
.form-input[type="date"],
input.form-input[type="date"],
.date-time-group .form-input[type="date"] {
    color: hsl(var(--foreground)) !important;
    -webkit-text-fill-color: hsl(var(--foreground)) !important;
}

/* Ensure placeholder is visible */
.date-input-wrapper .form-input[type="date"]::placeholder,
.form-input[type="date"]::placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
    -webkit-text-fill-color: hsl(var(--foreground)) !important;
}

/* Ensure native calendar picker indicator is visible (right-side icon) - more aggressive for mobile */
.form-input[type="date"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1 !important;
    filter: invert(0.5) !important;
    cursor: pointer !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C04000' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='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") !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: 16px 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    position: relative !important;
    right: 8px !important;
}

/* Override potential plugin styles that hide the calendar picker */
.form-input[type="date"]::-webkit-calendar-picker-indicator:not([style*="display: none"]),
input[type="date"]::-webkit-calendar-picker-indicator {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Firefox calendar picker */
.form-input[type="date"]::-moz-calendar-picker-indicator,
input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 1 !important;
    filter: invert(0.5) !important;
    display: inline-block !important;
}

/* Time selects */
.time-select {
    width: 100% !important;
    padding: 14px 18px !important;
    padding-right: 40px !important;
    border-radius: 14px !important;
    border: 2px solid #cdd7dc !important;
    background: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-input) !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    font-family: var(--font-body) !important;
}

.time-select:focus {
    outline: none !important;
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1), var(--shadow-input) !important;
    transform: translateY(-1px) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
}

.time-select option {
    padding: 12px;
    background: hsl(0 0% 100%);
    color: hsl(var(--foreground));
}

/* Date input wrapper for mobile-compatible icon */
.date-input-wrapper {
    position: relative;
    flex: 1.2;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.date-input-wrapper .form-input.date-input {
    flex: 1;
    padding-left: 38px !important;
}

.date-input-wrapper .date-input-icon {
    position: absolute;
    left: 90%;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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: center center;
    background-size: 18px;
    pointer-events: none;
    z-index: 1;
}

/* Date input text styles */
.date-input-wrapper .form-input[type="text"].date-input,
.form-input.date-input {
    color: hsl(var(--foreground)) !important;
    -webkit-text-fill-color: hsl(var(--foreground)) !important;
}

/* Ensure placeholder is visible */
.date-input-wrapper .form-input[type="text"]::placeholder,
.form-input.date-input::placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
    -webkit-text-fill-color: hsl(var(--foreground)) !important;
}

/* Date-Time Group */
.date-time-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.date-time-group .time-select {
    flex: 0.8;
    min-width: 100px;
    max-width: 130px;
}

/* Phone Input */
.phone-container {
    display: flex !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 2px solid #cdd7dc !important;
    background: hsl(0 0% 100%) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: var(--shadow-input) !important;
    align-items: center;
    justify-content: space-between;
}

.phone-container:focus-within {
    border-color: hsl(var(--primary)) !important;
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1), var(--shadow-input) !important;
}

.country-select {
    padding: 14px 12px !important;
    background: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    min-width: 115px !important;
    max-width: 85px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 14px !important;
    height: 50px !important;
}

.country-select:focus {
    outline: none !important;
    background-color: hsl(0 0% 100%) !important;
}

.phone-input {
    flex: 1 !important;
    padding: 14px !important;
    border: none !important;
    background: transparent !important;
    color: hsl(var(--foreground)) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: var(--font-body) !important;
}

.phone-input:focus {
    outline: none !important;
    background: transparent !important;
    color: hsl(var(--foreground)) !important;
}

.phone-input::placeholder {
    color: hsl(var(--foreground)) !important;
    opacity: 0.6 !important;
}

/* Field Cards */
.field-card {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid hsl(var(--border));
    background: hsl(0 0% 100%);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-card);
}

.field-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

/* Step Navigation */
.step-navigation {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    width: 100%;
    box-sizing: border-box;
}

.step-button {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid hsl(25 90% 40%);
    background: linear-gradient(135deg, hsl(25 90% 40%), hsl(35 80% 52%));
    color: hsl(0 0% 100%);
    font-family: var(--font-body);
}

.step-button:hover {
    border-color: hsl(35 80% 52%);
    background: linear-gradient(135deg, hsl(35 80% 52%), hsl(25 90% 40%));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsl(25 90% 40% / 0.35);
}

.step-button:active {
    transform: translateY(0);
}

/* Submit Button */
.submit-button {
    padding: 18px 16px !important;
    background: linear-gradient(135deg, var(--morend-accent), #ff6a1e) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 3px 10px rgba(192, 64, 0, 0.25) !important;
}
.submit-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px hsl(25 90% 40% / 0.5);
}

.submit-button:active:not(:disabled) {
    transform: translateY(0);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-button .spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

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

/* Price Summary */
.price-summary {
    background: linear-gradient(135deg, hsl(25 90% 40% / 0.08), hsl(35 80% 52% / 0.05));
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    border: 1px solid hsl(var(--primary) / 0.15);
}

.price-total {
    font-size: 22px;
    font-weight: 800;
    color: hsl(var(--primary));
    font-family: var(--font-display);
    margin-bottom: 2px;
}

.price-conversion {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 6px;
}

.price-details {
    font-size: 12px;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* Validation Messages */
.validation-message {
    font-size: 12px;
    color: hsl(var(--destructive));
    margin-top: 6px;
    display: none;
    font-weight: 500;
}

.form-group.error .form-input,
.form-group.error .phone-container,
.form-col.error .form-input {
    border-color: hsl(var(--destructive));
    box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.1);
}

.form-group.error .validation-message,
.form-col.error .validation-message {
    display: block;
    animation: fadeSlideIn 0.2s ease;
}

/* Radio Options */
.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1.5px solid hsl(var(--border));
    border-radius: 12px;
    background: hsl(0 0% 100%);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--foreground)) !important;
}

.radio-option:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.03);
}

.radio-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: hsl(var(--primary));
    cursor: pointer;
}

/* Stripe Section */
.stripe-section {
    padding: 8px 0;
}

.stripe-title {
    font-size: 22px;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.stripe-subtitle {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 24px;
}

/* Payment Summary */
.payment-summary {
    background: hsl(var(--secondary));
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: hsl(var(--foreground));
}

.payment-row.payment-total {
    border-top: 1.5px solid hsl(var(--border));
    margin-top: 8px;
    padding-top: 14px;
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--primary));
    font-family: var(--font-display);
}

/* Card Element */
.card-element-container {
    margin-bottom: 16px;
}

#card-element {
    padding: 16px;
    border-radius: 14px;
    border: 1.5px solid hsl(var(--border));
    background: hsl(0 0% 100%);
    transition: all 0.25s ease;
    box-shadow: var(--shadow-input);
}

#card-element.StripeElement--focus {
    border-color: hsl(var(--primary));
    box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

#card-element.StripeElement--invalid {
    border-color: hsl(var(--destructive));
}

.card-errors {
    font-size: 13px;
    color: hsl(var(--destructive));
    margin-top: 8px;
    display: none;
}

.card-errors.visible {
    display: block;
    animation: fadeSlideIn 0.2s ease;
}

/* Payment Message */
.payment-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.payment-message.success {
    background: hsl(142 71% 45% / 0.1);
    border: 1px solid hsl(142 71% 45% / 0.3);
    color: hsl(142 71% 35%);
}

.payment-message.error {
    background: hsl(var(--destructive) / 0.1);
    border: 1px solid hsl(var(--destructive) / 0.3);
    color: hsl(var(--destructive));
}

/* Terms Section */
.terms-deposit-section {
    margin-bottom: 20px !important;
}

.terms-deposit-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: hsl(var(--foreground)) !important;
    line-height: 1.5 !important;
}

.terms-deposit-input {
    width: 18px !important;
    height: 18px !important;
    accent-color: hsl(var(--primary)) !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.terms-deposit-text a {
    color: hsl(var(--primary)) !important;
    text-decoration: underline !important;
}

.terms-deposit-error {
    font-size: 12px;
    color: hsl(var(--destructive));
    margin-top: 8px;
    margin-left: 30px;
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    background: hsl(0 0% 100%);
    border: 1.5px solid hsl(var(--border));
    border-radius: 12px;
    padding: 4px;
    width: fit-content;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: hsl(var(--secondary));
    color: hsl(var(--foreground));
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: hsl(var(--primary));
    color: white;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--foreground));
    font-family: var(--font-display);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Custom Calendar Overlay */
.custom-calendar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: rgba(0, 0, 0, 0.3);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
    box-sizing: border-box;
}

/* Firefox fallback for backdrop-filter */
@supports not (backdrop-filter: blur(2px)) {
    .custom-calendar-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Mobile: Center the calendar popup */
@media (max-width: 480px) {
    .custom-calendar-overlay {
        justify-content: center;
        align-items: center;
        padding: 16px;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        min-height: 100%;
        z-index: 99999;
    }
    
    .custom-calendar-overlay .custom-calendar-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        max-width: calc(100vw - 32px) !important;
        width: 100% !important;
        padding: 16px !important;
    }
    
    .custom-calendar-overlay.show .custom-calendar-container {
        transform: scale(1) !important;
    }
    
    /* Mobile calendar days - reduce size to prevent overflow - HIGH SPECIFICITY */
    .custom-calendar-overlay .custom-calendar-days {
        gap: 5px !important;
        margin-bottom: 12px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-days .custom-calendar-day {
        min-width: 28px !important;
        min-height: 28px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-header {
        margin-bottom: 12px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-prev, .custom-calendar-overlay .custom-calendar-next {
        width: 28px !important;
        height: 28px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .custom-calendar-overlay .custom-calendar-title {
        font-size: 16px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-weekdays {
        gap: 2px !important;
        margin-bottom: 8px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-weekdays span {
        font-size: 10px !important;
        padding: 4px 0 !important;
    }
    
    .custom-calendar-overlay .custom-calendar-actions {
        gap: 8px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-cancel,
    .custom-calendar-overlay .custom-calendar-ok {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }
}

/* Extra small devices - further reduce to prevent overflow - HIGH SPECIFICITY */
@media (max-width: 360px) {
    .custom-calendar-overlay .custom-calendar-container {
        max-width: calc(100vw - 24px) !important;
        padding: 12px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-days {
        gap: 5px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-days .custom-calendar-day {
        min-width: 24px !important;
        min-height: 24px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-title {
        font-size: 14px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-prev, .custom-calendar-overlay .custom-calendar-next {
        width: 22px !important;
        height: 35px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .custom-calendar-overlay .custom-calendar-weekdays span {
        font-size: 9px !important;
    }
    
    .custom-calendar-overlay .custom-calendar-cancel,
    .custom-calendar-overlay .custom-calendar-ok {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

.custom-calendar-overlay.show {
    display: flex;
    opacity: 1;
}

.custom-calendar-container {
    background: hsl(0 0% 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    max-width: 320px;
    width: 100%;
    transition: transform 0.2s ease;
    position: absolute;
}

.custom-calendar-overlay.show .custom-calendar-container {
    transform: scale(1) !important;
}

.custom-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.custom-calendar-title {
    font-size: 18px;
    font-weight: 700;
    color: hsl(var(--foreground));
    font-family: var(--font-display);
}

.custom-calendar-prev,
.custom-calendar-next {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid hsl(var(--border));
    background: hsl(210 60% 93%);
    color: hsl(var(--foreground));
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-calendar-prev:hover,
.custom-calendar-next:hover {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
}

.custom-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.custom-calendar-weekdays span {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    padding: 8px 0;
}

.custom-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}

.custom-calendar-day {
    aspect-ratio: 1;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: hsl(var(--foreground));
    background: hsl(210 60% 93%);
    border: 1px solid transparent;
}

.custom-calendar-day:hover:not(.disabled):not(.empty) {
    background: hsl(var(--primary) / 0.1);
    border-color: hsl(var(--primary) / 0.3);
}

.custom-calendar-day.selected {
    background: hsl(var(--primary));
    color: white;
    border-color: hsl(var(--primary));
    font-weight: 600;
}

.custom-calendar-day.today {
    border-color: hsl(var(--accent));
    color: hsl(var(--accent));
    font-weight: 600;
}

.custom-calendar-day.disabled {
    color: hsl(var(--muted-foreground));
    opacity: 0.4;
    cursor: not-allowed;
}

.custom-calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.custom-calendar-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.custom-calendar-cancel,
.custom-calendar-ok {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}

.custom-calendar-cancel {
    background: transparent;
    border: 1.5px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.custom-calendar-cancel:hover {
    background: hsl(var(--secondary));
}

.custom-calendar-ok {
    background: hsl(var(--primary));
    border: none;
    color: white;
}

.custom-calendar-ok:hover {
    background: hsl(197 90% 35%);
    transform: translateY(-1px);
}

/* Quantity Label Info */
.quantity-label-info {
    font-size: 12px;
    font-weight: 400;
    color: #1d1d1d;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 4px;
}

/* Date Error */
#date-error {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: hsl(var(--destructive));
    margin-top: 8px;
}

#date-error img {
    width: 16px;
    height: 16px;
}

/* Exchange Rate Info */
.exchange-rate-info {
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    margin-top: 4px;
    font-style: italic;
}

/* Full width helper */
.full-width {
    width: 100%;
}

/* Step visibility */
.step-1,
.step-2,
.step-3,
.step-4 {
}

.progress-label {
    display: none;
}

/* Responsive */
@media (max-width: 640px) {
    .rental-form {
        padding: 20px 16px;
        border-radius: 16px;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
    }

    .rental-form * {
        box-sizing: border-box;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .form-row > .form-group,
    .form-col {
        width: 100%;
        flex: none;
    }

    .form-input,
    input.form-input,
    select.form-input,
    .time-select {
        width: 100% !important;
        max-width: 100% !important;
    }

    .date-time-group {
        flex-direction: column;
        width: 100%;
    }

    .date-time-group .form-input[type="date"],
    .date-time-group .time-select {
        flex: none;
        width: 100% !important;
        max-width: 100% !important;
    }

    .step-navigation {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .step-button,
    .submit-button {
        width: 100%;
        box-sizing: border-box;
        flex: 1;
    }

    .price-total {
        font-size: 24px;
    }

    /* Mobile step indicators */
    .form-progress .flex {
        gap: 0;
    }
    
    .step-indicator {
        width: 32px;
        height: 32px;
    }
    
    .step-indicator svg {
        width: 14px;
        height: 14px;
    }
    
    .step-label {
        font-size: 9px;
    }
    
    .progress-line {
        min-width: 15px;
        height: 2px;
    }
}

/* Override Astra Dark Mode input focus styles */
.astra-dark-mode-enable .rental-form input:focus,
.astra-dark-mode-enable .rental-form textarea:focus,
.astra-dark-mode-enable .rental-form select:focus,
.astra-dark-mode-enable .rental-form .form-input:focus,
.astra-dark-mode-enable .rental-form .time-select:focus,
.astra-dark-mode-enable .rental-form .phone-input:focus,
.astra-dark-mode-enable .rental-form .country-select:focus {
    background-color: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
    border-color: hsl(var(--primary)) !important;
}

/* Override Astra Dark Mode all input states */
.astra-dark-mode-enable .rental-form input,
.astra-dark-mode-enable .rental-form textarea,
.astra-dark-mode-enable .rental-form select,
.astra-dark-mode-enable .rental-form .form-input,
.astra-dark-mode-enable .rental-form .time-select,
.astra-dark-mode-enable .rental-form .phone-input,
.astra-dark-mode-enable .rental-form .country-select,
.astra-dark-mode-enable .rental-form input[type="text"],
.astra-dark-mode-enable .rental-form input[type="email"],
.astra-dark-mode-enable .rental-form input[type="tel"],
.astra-dark-mode-enable .rental-form input[type="number"],
.astra-dark-mode-enable .rental-form input[type="password"],
.astra-dark-mode-enable .rental-form input[type="url"],
.astra-dark-mode-enable .rental-form input[type="search"],
.astra-dark-mode-enable .rental-form .form-row input,
.astra-dark-mode-enable .rental-form .form-row textarea {
    background-color: hsl(0 0% 100%) !important;
    color: hsl(var(--foreground)) !important;
    border-color: hsl(var(--border)) !important;
}

/* Fix multiple dropdown arrows on select inputs */
.rental-form select.form-input,
.rental-form select,
.astra-dark-mode-enable .rental-form select,
#pickup-city,
#return-city {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C04000' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 16px !important;
    padding-right: 40px !important;
}

/* ========================================
   Payment Success Overlay Styles
   ======================================== */
.payment-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.success-overlay-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s ease-out;
}

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

.success-checkmark {
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-title {
    color: #22c55e !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0;
}


.success-subtitle {
    color: #6b7280;
    font-size: 20px;
    margin: 0 0 30px 0;
}


.success-details {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-of-type {
    border-bottom: none;
}

.detail-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.detail-value {
    color: #1f2937;
    font-size: 16px;
    font-weight: 600;
}

.detail-message {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    padding: 12px 32px;
    background: #C04000;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.back-link:hover {
    background: #a33500;
    color: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .success-overlay-content {
        padding: 30px 20px;
    }
    
    .success-title {
        font-size: 24px !important;
    }
    
    .detail-row {
        align-items: flex-start;
        gap: 4px;
    }
    
    .detail-value {
        align-self: flex-end;
    }
}
