/* Full height viewport setup */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Main container - centers form on screen */
.form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Form wrapper with responsive sizing */
.form-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header and Footer styling */
.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.form-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #495057;
    margin: 0 0 0.5rem 0;
}

.form-header p {
    color: #6c757d;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.form-header .logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.form-footer p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Main form content area */
.form-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .form-wrapper {
        padding: 1.5rem;
        margin: 10px;
        border-radius: 12px;
    }
    
    .form-container {
        padding: 10px;
        align-items: flex-start;
        padding-top: 10vh;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }

    .form-header p {
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) {
    .form-wrapper {
        max-width: 600px;
        padding: 3rem;
    }
}

@media (min-width: 992px) {
    .form-wrapper {
        max-width: 650px;
    }
}

/* Form step animations with variable speeds */
.form-step {
    display: none;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translate(0, 0);
    position: relative;
}

/* Animation speed classes */
.form-step.speed-slow {
    transition: all 0.8s ease-out;
}

.form-step.speed-normal {
    transition: all 0.4s ease-out;
}

.form-step.speed-fast {
    transition: all 0.2s ease-out;
}

.form-step.speed-very-slow {
    transition: all 1.2s ease-out;
}

.form-step.speed-very-fast {
    transition: all 0.1s ease-out;
}

/* Animation types */
.form-step.animate-none {
    transform: none;
}

.form-step.animate-left {
    transform: translateX(-100%);
}

.form-step.animate-right {
    transform: translateX(100%);
}

.form-step.animate-up {
    transform: translateY(-100%);
}

.form-step.animate-down {
    transform: translateY(100%);
}

/* Ensure smooth transitions */
.form-wrapper {
    position: relative;
    overflow: hidden;
}

.steps-container {
    position: relative;
    min-height: calc(100vh - 450px);
    max-height: calc(100vh - 450px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .steps-container {
        max-height: calc(100vh - 400px);
    }
}

/* Progress indicator */
.progress-container {
    margin-bottom: 2rem;
}

.progress {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
}

.progress-bar {
    transition: width 0.4s ease;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Step counter */
.step-counter {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Form elements responsive sizing */
.form-control, .form-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Custom radio buttons with A, B, C, D styling */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.radio-item.selected {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.radio-letter {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 50%;
    background: white;
    border: 2px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #6c757d;
    margin-right: 1rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-item.selected .radio-letter {
    background: #667eea;
    border-color: white;
    color: white;
}

.radio-text {
    font-weight: 500;
    color: #495057;
    line-height: 1.4;
    flex: 1;
}

.radio-item.selected .radio-text {
    color: white;
    font-weight: 600;
}

/* Hide default radio input */
.radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Mobile responsiveness for radio buttons */
@media (max-width: 576px) {
    .radio-item {
        padding: 0.875rem 1rem;
    }

    .radio-letter {
        width: 2.2rem;
        height: 2.2rem;
        min-width: 2.2rem;
        font-size: 0.85rem;
        margin-right: 0.75rem;
    }

    .radio-text {
        font-size: 0.95rem;
    }
}

/* YesNo field - horizontal layout */
.yesno-group {
    display: flex;
    flex-direction: row !important;
    gap: 1rem;
    flex-wrap: wrap;
}

.yesno-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: 1;
    min-width: 120px;
}

.yesno-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.yesno-item.selected {
    border-color: #667eea;
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.yesno-item .radio-letter {
    margin-right: 0.75rem;
}

.yesno-item.selected .radio-letter {
    background: #667eea;
    border-color: white;
    color: white;
}

.yesno-item.selected .radio-text {
    color: #667eea;
    font-weight: 600;
}

/* Hide default radio input in yesno */
.yesno-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Mobile responsiveness for yesno buttons */
@media (max-width: 576px) {
    .yesno-group {
        gap: 0.75rem;
    }

    .yesno-item {
        padding: 0.875rem 1rem;
        min-width: 100px;
    }

    .yesno-item .radio-letter {
        width: 2.2rem;
        height: 2.2rem;
        min-width: 2.2rem;
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }

    .yesno-item .radio-text {
        font-size: 0.95rem;
    }
}

/* Custom checkboxes */
.form-check-input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-input[type="checkbox"]:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check {
    margin-bottom: 0.75rem;
    padding-left: 1.8rem;
}

.form-check-label {
    font-weight: 500;
    cursor: pointer;
}

/* Button styling */
.btn-primary {
    background: linear-gradient(90deg, #667eea, #764ba2);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    min-height: 44px;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    min-height: 44px;
}

/* Navigation buttons container */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid transparent;
    transition: border-color 0.3s ease;
}

/* Add subtle shadow when form is scrolled */
.form-navigation.scrolled {
    border-top-color: #e9ecef;
}

/* Scroll indicator arrow */
.scroll-indicator {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    animation: bounce 2s infinite;
}

.scroll-indicator.show {
    display: flex;
}

.scroll-indicator-text {
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scroll-indicator-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid rgba(102, 126, 234, 0.9);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@media (max-width: 576px) {
    .form-navigation {
        flex-direction: column-reverse;
        gap: 0.5rem;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .scroll-indicator {
        bottom: 160px;
    }
}

/* Labels */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.required::after {
    content: " *";
    color: #dc3545;
}

/* Form title */
.form-title {
    text-align: center;
    margin-bottom: 1.0rem;
    font-size: 1.5rem;
    color: #495057;
    font-weight: 700;
}

/* Loading screen styling */
.loading-screen {
    text-align: center;
    padding: 3rem 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.loading-message {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
}

.loading-dots {
    color: #667eea;
    font-weight: bold;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Success message styling */
.success-screen {
    text-align: center;
    padding: 3rem 1rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: successPulse 0.6s ease-out;
}

.success-icon::after {
    content: '✓';
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.success-message {
    color: #495057;
    font-size: 1rem;
    line-height: 1.5;
}

/* Phone verification overlay */
.phone-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.phone-verification-modal {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.phone-verification-overlay.show {
    display: flex;
}

.phone-verification-overlay.show .phone-verification-modal {
    transform: scale(1);
    opacity: 1;
}

.phone-verify-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.phone-verify-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.phone-verify-message {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.phone-verify-number {
    color: #667eea;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Success state for phone verification */
.phone-verify-success .phone-verify-spinner {
    display: none;
}

.phone-verify-success::before {
    content: '✓';
    display: block;
    width: 60px;
    height: 60px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    line-height: 60px;
    margin: 0 auto 1.5rem;
    animation: successPulse 0.6s ease-out;
}

.phone-verify-success .phone-verify-title {
    color: #28a745;
}

/* Failure state for phone verification */
.phone-verify-failure .phone-verify-spinner {
    display: none;
}

.phone-verify-failure::before {
    content: '✕';
    display: block;
    width: 60px;
    height: 60px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    line-height: 60px;
    margin: 0 auto 1.5rem;
    animation: failurePulse 0.6s ease-out;
}

.phone-verify-failure .phone-verify-title {
    color: #dc3545;
}

@keyframes failurePulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.phone-verify-retry {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

/* Field groups */
.field-group {
    margin-bottom: 1.5rem;
}

/* Error Screen */
.error-screen {
    text-align: center;
    padding: 3rem 2rem;
}

.error-screen-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

.error-screen-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

.error-screen-message {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Loading Overlay for API calls */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-overlay-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}

.loading-overlay-message {
    margin-top: 1rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 500;
}

/* Error Notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.error-notification-content {
    background: white;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
}

.error-icon {
    font-size: 1.5rem;
    color: #dc3545;
    flex-shrink: 0;
}

.error-text {
    flex: 1;
}

.error-text strong {
    display: block;
    color: #495057;
    margin-bottom: 0.25rem;
}

.error-text p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.error-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.error-close:hover {
    color: #495057;
}

/* Fields hidden after spinner */
.hidden-after-spinner {
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Rich Text Content */
.richtext-content {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #495057;
}

.richtext-content p {
    margin-bottom: 0.75rem;
}

.richtext-content p:last-child {
    margin-bottom: 0;
}

.richtext-content b,
.richtext-content strong {
    font-weight: 600;
}

/* Range Slider Value Display */
.range-value {
    display: inline-block;
    min-width: 40px;
    padding: 0.25rem 0.5rem;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-left: 0.5rem;
}

/* Range Slider Styling */
.form-range {
    width: 100%;
    height: 0.5rem;
    padding: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

.form-range::-webkit-slider-track {
    width: 100%;
    height: 0.5rem;
    background: #e9ecef;
    border-radius: 0.25rem;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: #667eea;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -0.375rem;
    transition: background 0.2s ease;
}

.form-range::-webkit-slider-thumb:hover {
    background: #5568d3;
}

.form-range::-moz-range-track {
    width: 100%;
    height: 0.5rem;
    background: #e9ecef;
    border-radius: 0.25rem;
}

.form-range::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    background: #667eea;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-range::-moz-range-thumb:hover {
    background: #5568d3;
}

.form-range:focus {
    outline: none;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Address Field Styling */
.address-field-group {
    margin-bottom: 1.5rem;
}

.address-field-group .mb-3 {
    margin-bottom: 1rem !important;
}

.address-fields-container {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 1rem;
}

.address-postcode-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.address-postcode-wrapper .form-control {
    flex: 0 0 50%;
    max-width: 50%;
}

.address-lookup-btn {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    flex: 1;
    min-width: 0;
}

.address-lookup-btn:hover {
    background: #5568d3;
}

.address-lookup-btn:active {
    background: #4557c2;
}

/* Hide disabled address fields */
.address-county-uk[style*="display: none"],
.address-state-us[style*="display: none"],
.address-county-other[style*="display: none"],
.address-postcode-uk[style*="display: none"],
.address-zip-us[style*="display: none"],
.address-postcode-other[style*="display: none"] {
    display: none !important;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Address Lookup Modal */
.address-lookup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.address-lookup-modal.show {
    display: flex;
}

.address-lookup-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.address-lookup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.address-lookup-header h3 {
    margin: 0;
    color: #495057;
    font-size: 1.5rem;
}

.address-lookup-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.address-lookup-close:hover {
    color: #495057;
}

.address-lookup-results {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    max-height: 400px;
    min-height: 200px;
}

.address-lookup-item {
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.address-lookup-item:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateX(4px);
}

.address-lookup-item:active {
    background: #e9ecef;
}

.address-lookup-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.address-lookup-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

.address-lookup-error {
    padding: 1rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.address-lookup-manual {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    margin-top: 1rem;
}

.address-lookup-manual button {
    background: none;
    border: none;
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
}

.address-lookup-manual button:hover {
    color: #5568d3;
}