/* Modern Direct Debit Form Styles */
.landz-direct-debit-form-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1a202c;
    line-height: 1.5;
}

.landz-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.landz-form-header h2 {
    color: #2d3748;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.landz-security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    padding: 1rem;
    color: #2f855a;
    font-size: 0.875rem;
    font-weight: 500;
}

.landz-security-icon {
    font-size: 1.25rem;
}

/* Progress Bar Styles */
.landz-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    padding: 0;
}

.landz-progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.landz-progress-step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #718096;
    font-size: 1rem;
    font-weight: 600;
    line-height: 36px;
    margin: 0 auto 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-label {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.landz-progress-step.active .step-number {
    border-color: #3b82f6;
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.landz-progress-step.active .step-label {
    color: #3b82f6;
    font-weight: 600;
}

.landz-progress-step.completed .step-number {
    background: #10b981;
    border-color: #10b981;
    color: #fff;
}

.landz-progress-step.completed .step-label {
    color: #10b981;
    font-weight: 600;
}

/* Form Styles */
.landz-form {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 400px;
    position: relative;
}

.landz-form-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.landz-form-step:first-child,
.landz-form-step.active {
    display: block !important;
    opacity: 1 !important;
}

.landz-form-step h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.landz-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.landz-form-group {
    flex: 1;
    min-width: 0;
}

.landz-form-group-full {
    flex: 1 1 100%;
}

.landz-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.landz-label.required::after {
    content: ' *';
    color: #ef4444;
}

.landz-input,
.landz-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.15s ease;
    background: #fff;
    color: #1f2937;
}

.landz-input:hover,
.landz-select:hover {
    border-color: #9ca3af;
}

.landz-input:focus,
.landz-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Currency Input Styles */
.landz-currency-input {
    position: relative;
    display: flex;
    align-items: center;
}

.landz-currency-symbol {
    position: absolute;
    left: 0.75rem;
    z-index: 1;
    color: #6b7280;
    font-weight: 500;
    pointer-events: none;
}

.landz-currency-input .landz-input {
    padding-left: 2rem;
}

.landz-input.error,
.landz-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.landz-help-text {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.landz-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

.landz-postcode-lookup {
    display: flex;
    gap: 0.5rem;
}

.landz-postcode-lookup .landz-input {
    flex: 1;
}

/* Button Styles */
.landz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
    text-decoration: none;
    min-width: 120px;
}

.landz-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.landz-btn-primary {
    background: #3b82f6;
    color: #fff;
}

.landz-btn-primary:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.landz-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.landz-btn-secondary:hover:not(:disabled) {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.landz-btn-success {
    background: #10b981;
    color: #fff;
}

.landz-btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.landz-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

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

.landz-form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.landz-toggle-manual {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.landz-toggle-manual:hover {
    color: #2563eb;
}

/* Banking Section Styles */
.landz-banking-header {
    margin-bottom: 2rem;
}

.landz-trust-indicators {
    margin-top: 1rem;
}

.landz-guarantee {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.landz-guarantee strong {
    color: #1f2937;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
}

.landz-guarantee p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.landz-guarantee-toggle {
    background: none;
    border: none;
    color: #3b82f6;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.landz-guarantee-toggle:hover {
    color: #2563eb;
}

.landz-guarantee-full {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.landz-guarantee-full ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landz-guarantee-full li {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.landz-guarantee-full li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.landz-bank-validation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.landz-validation-result {
    margin-top: 1rem;
}

.landz-validation-result .success {
    color: #10b981;
    font-weight: 500;
}

.landz-validation-result .error {
    color: #ef4444;
    font-weight: 500;
}

/* Review Section Styles */
.landz-review-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.landz-review-section:last-of-type {
    border-bottom: none;
}

.landz-review-section h4 {
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.landz-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.landz-review-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.landz-review-item .label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.875rem;
}

.landz-review-item .value {
    color: #1f2937;
    font-weight: 600;
    text-align: right;
}

.landz-review-address {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    line-height: 1.5;
}

/* Consent Section */
.landz-consent-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
}

.landz-checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.landz-checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.landz-consent-text {
    color: #92400e;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Form Messages */
.landz-form-messages {
    margin-top: 1rem;
}

.landz-success-message,
.landz-error-message {
    padding: 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: none;
}

.landz-success-message {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #10b981;
}

.landz-error-message {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .landz-direct-debit-form-container {
        margin: 1rem;
        padding: 0;
    }

    .landz-form {
        padding: 1rem;
        border-radius: 8px;
    }

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

    .landz-progress-bar {
        margin-bottom: 2rem;
        padding: 0;
    }

    .landz-progress-bar::before {
        top: 16px;
        left: 15%;
        right: 15%;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
        line-height: 28px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .landz-form-row {
        flex-direction: column;
        gap: 0;
    }

    .landz-form-group {
        margin-bottom: 1rem;
    }

    .landz-form-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }

    .landz-btn {
        width: 100%;
        justify-content: center;
    }

    .landz-postcode-lookup {
        flex-direction: column;
        gap: 0.5rem;
    }

    .landz-review-grid {
        grid-template-columns: 1fr;
    }

    .landz-review-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .landz-review-item .value {
        text-align: left;
    }

    .landz-success-modal {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Success Modal Styles */
.landz-success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.landz-success-modal {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.landz-success-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landz-success-modal h3 {
    color: #1f2937;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.landz-success-modal p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.landz-success-modal-reference {
    background: #f3f4f6;
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.landz-success-modal-reference p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.landz-success-modal-reference strong {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 700;
    font-family: monospace;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Utility Classes */
.landz-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
.landz-input:focus,
.landz-select:focus,
.landz-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .landz-direct-debit-form-container {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .landz-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .landz-btn {
        display: none;
    }
    
    .landz-progress-bar {
        display: none;
    }
} 