        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        :root {
            --primary-dark: #116aa6;
            --primary-light: #36b5b5;
            --success: #22c55e;
            --error: #ef4444;
            --warning: #f59e0b;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --border: #e2e8f0;
            --background: #f8fafc;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: var(--background);
            min-height: 100vh;
            position: relative;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        /* RTL Support */
        [dir="rtl"] body {
            font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            text-align: right;
        }
        
        .header-gradient {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
            height: 250px;
            position: relative;
            overflow: hidden;
        }
        
        .header-gradient::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.133 7-7s-3.134-7-7-7-7 3.133-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.133 7-7s-3.134-7-7-7-7 3.133-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        }
        
        .page-title {
            text-align: center;
            padding: 40px 20px;
            color: white;
            position: relative;
            z-index: 1;
        }
        
        .page-title h1 {
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 10px;
            color: white !important;
        }
        
        .page-title p {
            font-size: 16px;
            opacity: 0.9;
            color: white !important;
        }
        
        
        /* Saudi Riyal Symbol Styles */
        .riyal-symbol {
            display: inline-block;
            width: 0.52em;
            height: 0.52em;
            vertical-align: -0.05em;
            margin-left: 5px;
            margin-right: 2px;
        }
        
        .riyal-symbol svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
            display: block;
        }
        
        /* Larger symbol for plan prices */
        .plan-price .riyal-symbol {
            width: 0.64em;
            height: 0.64em;
            vertical-align: -0.1em;
        }
        
        /* RTL support for riyal symbol */
        [dir="rtl"] .riyal-symbol {
            margin-left: 2px;
            margin-right: 5px;
        }
        
        .main-container {
            max-width: 1200px;
            margin: -100px auto 40px;
            padding: 0 20px;
            position: relative;
            z-index: 10;
        }
        
        .content-wrapper {
            display: grid;
            grid-template-columns: 1fr 380px;
            gap: 30px;
            align-items: start;
            width: 100%;
            max-width: none;
        }
        
        .form-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            overflow: hidden;
        }
        
        .summary-card {
            background: white;
            border-radius: 16px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
            padding: 24px;
            position: sticky;
            top: 20px;
            width: 380px;
            max-width: 380px;
            min-width: 380px;
            height: fit-content;
            flex-shrink: 0;
        }
        
        .section {
            padding: 30px;
            border-bottom: 1px solid var(--border);
        }
        
        .section:last-child {
            border-bottom: none;
        }
        
        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            line-height: 1.4;
        }
        
        /* Better spacing for Arabic text in section titles */
        [dir="rtl"] .section-title {
            gap: 12px;
        }
        
        .section-icon {
            width: 24px;
            height: 24px;
            color: var(--primary-dark);
        }
        
        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin-bottom: 16px;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-group.full-width {
            grid-column: 1 / -1;
        }
        
        label {
            display: block;
            margin-bottom: 6px;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 14px;
            line-height: 1.4;
        }
        
        /* Better spacing for Arabic labels */
        [dir="rtl"] label {
            margin-bottom: 8px;
        }
        
        .required {
            color: var(--error);
        }
        
        input, select {
            width: 100%;
            padding: 10px 14px;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 15px;
            font-family: inherit;
            transition: all 0.2s ease;
            background: white;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
        }
        
        /* Custom select arrow */
        select {
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 12px;
            padding-right: 40px;
        }
        
        [dir="rtl"] select {
            background-position: left 12px center;
            padding-right: 14px;
            padding-left: 40px;
        }
        
        input:focus, select:focus {
            outline: none;
            border-color: var(--primary-dark);
            box-shadow: 0 0 0 3px rgba(17,106,166,0.1);
        }
        
        /* Form validation states */
        input:invalid {
            border-color: var(--error);
        }
        
        input:invalid:focus {
            border-color: var(--error);
            box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
        }
        
        input:valid {
            border-color: var(--success);
        }
        
        /* Placeholder styling */
        input::placeholder,
        select::placeholder {
            color: var(--text-secondary);
            opacity: 0.7;
        }
        
        /* Improved form group spacing */
        .form-group:last-child {
            margin-bottom: 0;
        }
        
        /* Touch device optimizations */
        @media (hover: none) and (pointer: coarse) {
            .password-toggle {
                min-width: 44px;
                min-height: 44px;
                padding: 10px;
            }
            
            .btn-submit {
                min-height: 44px;
                padding: 12px 24px;
            }
            
            input, select {
                min-height: 44px;
                padding: 12px 14px;
            }
        }
        
        .phone-input-group {
            display: grid;
            grid-template-columns: 160px 1fr;
            gap: 12px;
        }
        
        .password-input {
            position: relative;
        }
        
        .password-input input {
            padding-right: 45px;
        }
        
        [dir="rtl"] .password-input input {
            padding-right: 14px;
            padding-left: 45px;
        }
        
        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            padding: 4px;
            color: var(--text-secondary);
            transition: all 0.2s ease;
            border-radius: 4px;
        }
        
        [dir="rtl"] .password-toggle {
            right: auto;
            left: 12px;
        }
        
        .password-toggle:hover {
            color: var(--primary-dark);
            background: rgba(17,106,166,0.1);
        }
        
        .eye-icon {
            display: block;
            width: 20px;
            height: 20px;
        }
        
        .password-strength {
            margin-top: 8px;
        }
        
        .strength-bar {
            height: 3px;
            background: var(--border);
            border-radius: 2px;
            overflow: hidden;
        }
        
        .strength-fill {
            height: 100%;
            width: 0;
            transition: all 0.3s ease;
        }
        
        .strength-fill.weak {
            width: 33%;
            background: var(--error);
        }
        
        .strength-fill.medium {
            width: 66%;
            background: var(--warning);
        }
        
        .strength-fill.strong {
            width: 100%;
            background: var(--success);
        }
        
        .strength-text {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 4px;
            display: block;
        }
        
        .password-match {
            font-size: 12px;
            font-weight: 500;
            margin-top: 8px;
            display: none;
        }
        
        .password-match.match {
            color: var(--success);
            display: block;
        }
        
        .password-match.no-match {
            color: var(--error);
            display: block;
        }
        
        .btn-submit {
            width: 100%;
            padding: 12px 24px;
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .btn-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 20px -5px rgba(17,106,166,0.4);
        }
        
        .btn-submit:active {
            transform: translateY(0);
        }
        
        /* Plan help text styling */
        .plan-help-text {
            margin-top: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
        }
        
        .plan-help-text a {
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 500;
        }
        
        .plan-help-text a:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }
        
        /* Summary Card Styles */
        .summary-title {
            font-size: 20px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 20px;
        }
        
        .summary-item {
            padding: 16px 0;
            border-bottom: 1px solid var(--border);
        }
        
        .summary-item:last-child {
            border-bottom: none;
        }
        
        .summary-label {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 4px;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        .summary-value {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            word-wrap: break-word;
            overflow-wrap: break-word;
            hyphens: auto;
            line-height: 1.4;
        }
        
        .summary-value.empty {
            color: var(--text-secondary);
            font-weight: 400;
            font-style: italic;
        }
        
        /* Ensure summary card maintains exact width */
        .summary-card * {
            max-width: 100%;
            box-sizing: border-box;
        }
        
        .summary-plan {
            background: linear-gradient(135deg, rgba(17,106,166,0.05) 0%, rgba(54,181,181,0.05) 100%);
            border: 1px solid var(--primary-light);
            border-radius: 8px;
            padding: 16px;
            margin-top: 20px;
        }
        
        .plan-header {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }
        
        .plan-name {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
            word-wrap: break-word;
            overflow-wrap: break-word;
            line-height: 1.3;
        }
        
        .plan-price {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-dark);
        }
        
        
        .locked-plan {
            background: linear-gradient(135deg, rgba(17,106,166,0.05) 0%, rgba(54,181,181,0.05) 100%);
            border: 2px solid var(--primary-light);
            border-radius: 12px;
            padding: 20px;
        }
        
        .locked-plan-card {
            text-align: center;
            margin-bottom: 15px;
        }
        
        .locked-plan-name {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 10px;
        }
        
        .locked-plan-price {
            font-size: 32px;
            font-weight: 700;
            color: var(--primary-dark);
            margin-bottom: 10px;
        }
        
        
        .locked-plan-trial {
            display: inline-block;
            background: rgba(16, 107, 167, 0.1);
            color: #106ba7;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 500;
        }
        
        .plan-change-note {
            text-align: center;
            color: var(--text-secondary);
            font-size: 14px;
            margin: 0;
        }
        
        .plan-change-note a {
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 600;
        }
        
        .plan-change-note a:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }
        
        .locked-plan-badge {
            display: inline-block;
            background: var(--primary-dark);
            color: white;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
            text-transform: uppercase;
        }
        
        .plan-help-text {
            margin-top: 10px;
            font-size: 13px;
            color: var(--text-secondary);
        }
        
        .plan-help-text a {
            color: var(--primary-dark);
            text-decoration: none;
        }
        
        .plan-help-text a:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }
        
        .plan-trial {
            margin-top: 10px;
            padding: 6px 10px;
            background: rgba(16, 107, 167, 0.1);
            color: #106ba7;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }
        
        .trial-icon {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
        }
        
        .no-credit-card-section {
            margin-top: 12px;
            padding: 8px 12px;
            background: rgba(34, 197, 94, 0.1);
            color: #059669;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: 1px solid rgba(34, 197, 94, 0.2);
        }
        
        .credit-card-icon {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }
        
        .vat-notice {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 5px;
            text-align: left;
        }
        
        [dir="rtl"] .vat-notice {
            text-align: right;
        }
        
        /* reCAPTCHA Styles */
        #tenant-recaptcha {
            margin-bottom: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 78px;
        }
        
        #recaptcha-error {
            color: var(--error);
            font-size: 14px;
            font-weight: 500;
            margin-top: 8px;
            margin-bottom: 16px;
            padding: 8px 12px;
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid var(--error);
            border-radius: 6px;
            text-align: center;
        }
        
        /* Ensure reCAPTCHA widget is properly sized on mobile */
        @media (max-width: 480px) {
            #tenant-recaptcha {
                transform: scale(0.9);
                transform-origin: center;
                margin: 0 -5% 16px;
            }
        }
        
        /* Success Page Styles */
        .success-page {
            display: none;
            text-align: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        
        .success-page.active {
            display: block;
        }
        
        .success-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-top: 40px;
        }
        
        @media (max-width: 768px) {
            .success-content {
                grid-template-columns: 1fr;
                gap: 20px;
            }
        }
        
        .success-icon {
            width: 80px;
            height: 80px;
            margin: 0 auto 30px;
            color: var(--success);
        }
        
        .success-title {
            font-size: 32px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 10px;
        }
        
        .success-subtitle {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 40px;
        }
        
        .success-section {
            background: white;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 20px;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
            text-align: left;
        }
        
        [dir="rtl"] .success-section {
            text-align: right;
        }
        
        .success-section-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .success-steps {
            list-style: none;
            padding: 0;
        }
        
        .success-step {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }
        
        .success-step:last-child {
            border-bottom: none;
        }
        
        .step-number {
            background: var(--primary-dark);
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            flex-shrink: 0;
        }
        
        .success-url {
            background: var(--background);
            border: 2px solid var(--primary-light);
            border-radius: 8px;
            padding: 20px;
            margin: 20px 0;
            text-align: center;
        }
        
        .url-label {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 8px;
        }
        
        .url-link {
            font-size: 18px;
            font-weight: 600;
            color: var(--primary-dark);
            word-break: break-all;
            text-decoration: none;
        }
        
        .url-link:hover {
            color: var(--primary-light);
            text-decoration: underline;
        }
        
        .success-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
            margin-top: 30px;
        }
        
        .success-btn {
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
            min-width: 180px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .success-btn-primary {
            background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
            color: white;
        }
        
        .success-btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 20px -5px rgba(17,106,166,0.4);
        }
        
        .success-btn-secondary {
            background: white;
            color: var(--primary-dark);
            border: 2px solid var(--primary-dark);
        }
        
        .success-btn-secondary:hover {
            background: var(--primary-dark);
            color: white;
        }
        
        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            backdrop-filter: blur(4px);
        }
        
        .loading-overlay.active {
            display: flex;
        }
        
        .loading-content {
            background: white;
            padding: 40px;
            border-radius: 16px;
            text-align: center;
            animation: scaleIn 0.3s ease-out;
        }
        
        @keyframes scaleIn {
            from {
                transform: scale(0.9);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }
        
        .spinner {
            width: 50px;
            height: 50px;
            margin: 0 auto 20px;
            border: 3px solid var(--border);
            border-top: 3px solid var(--primary-dark);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .loading-text {
            color: var(--text-primary);
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }
        
        .loading-subtext {
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        .loading-steps {
            margin-top: 20px;
        }
        
        .loading-step {
            color: var(--text-secondary);
            font-size: 14px;
            margin: 5px 0;
            opacity: 0.5;
            transition: all 0.3s ease;
        }
        
        .loading-step.active {
            color: var(--primary-dark);
            opacity: 1;
            font-weight: 500;
        }
        
        /* Messages */
        .message {
            padding: 16px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .message.success {
            background: rgba(34,197,94,0.1);
            border: 1px solid var(--success);
            color: var(--success);
        }
        
        .message.pending {
            background: rgba(245,158,11,0.1);
            border: 1px solid var(--warning);
            color: var(--warning);
        }
        
        .message.error {
            background: rgba(239,68,68,0.1);
            border: 1px solid var(--error);
            color: var(--error);
        }
        
        .message-icon {
            font-size: 24px;
        }
        
        .message-content {
            flex: 1;
        }
        
        .message-text {
            font-weight: 500;
        }
        
        .message-area {
            margin: 20px 30px 0;
        }
        
        #messageArea {
            margin: 0 0 20px;
            padding: 16px;
            border-radius: 8px;
            display: none;
            font-size: 14px;
            font-weight: 500;
        }
        
        #messageArea.error {
            background: rgba(239, 68, 68, 0.1);
            border: 1px solid var(--error);
            color: var(--error);
        }
        
        #messageArea.success {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid var(--success);
            color: var(--success);
        }
        
        #messageArea.pending {
            background: rgba(245, 158, 11, 0.1);
            border: 1px solid var(--warning);
            color: var(--warning);
        }
        
        .access-link {
            display: inline-block;
            margin-top: 8px;
            color: var(--primary-dark);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s ease;
        }
        
        .access-link:hover {
            color: var(--primary-light);
        }
        
        /* Large desktop - ensure perfect 380px */
        @media (min-width: 1201px) {
            .content-wrapper {
                grid-template-columns: 1fr 380px;
            }
            
            .summary-card {
                width: 380px;
                max-width: 380px;
                min-width: 380px;
            }
        }
        
        /* Medium desktop - reduce to 360px */
        @media (max-width: 1200px) {
            .content-wrapper {
                grid-template-columns: 1fr 360px;
            }
            
            .summary-card {
                width: 360px;
                max-width: 360px;
                min-width: 360px;
            }
        }
        
        @media (max-width: 968px) {
            .content-wrapper {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .summary-card {
                position: static;
                width: 100%;
                max-width: 100%;
                min-width: auto;
                order: -1;
                margin-bottom: 20px;
            }
            
            .form-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            
            .phone-input-group {
                grid-template-columns: 1fr;
                gap: 8px;
            }
            
            .main-container {
                margin-top: -80px;
            }
        }
        
        @media (max-width: 768px) {
            .main-container {
                margin-top: -60px;
                padding: 0 15px;
            }
            
            .header-gradient {
                height: 200px;
            }
            
            .page-title {
                padding: 30px 20px;
            }
            
            .page-title h1 {
                font-size: 28px;
            }
            
            .section {
                padding: 25px;
            }
        }
        
        @media (max-width: 480px) {
            .main-container {
                padding: 0 15px;
            }
            
            .page-title {
                padding: 30px 15px;
            }
            
            .page-title h1 {
                font-size: 24px;
            }
            
            .section {
                padding: 20px;
            }
            
            .form-group input,
            .form-group select {
                padding: 12px 14px;
                font-size: 16px; /* Prevent zoom on iOS */
                border-radius: 10px;
            }
            
            .form-group select {
                padding-right: 44px;
            }
            
            [dir="rtl"] .form-group select {
                padding-right: 14px;
                padding-left: 44px;
            }
            
            .password-toggle {
                padding: 8px;
                right: 8px;
            }
            
            [dir="rtl"] .password-toggle {
                left: 8px;
            }
            
            .btn-submit {
                padding: 14px 24px;
                font-size: 16px;
            }
        }
        
        /* Hide header when in success mode */
        .asoft-tenant-creator.success-mode .header-gradient {
            display: none !important;
            visibility: hidden !important;
            height: 0 !important;
            overflow: hidden !important;
        }
        
        /* Also hide main container and show only success page */
        .asoft-tenant-creator.success-mode .main-container {
            display: none !important;
        }
        
        /* Ensure success page is visible when active */
        .asoft-tenant-creator.success-mode .success-page {
            display: block !important;
        }
        }
        
        /* VAT Breakdown Styles */
        .price-breakdown {
            margin-top: 10px;
        }
        
        .price-breakdown .plan-price {
            font-size: 28px;
            font-weight: 700;
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .vat-line {
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 6px;
            display: block;
            text-align: left;
        }
        
        .riyal-symbol-small {
            display: inline-block;
            width: 11px;
            height: 11px;
            vertical-align: middle;
            margin: 0 2px;
        }
        
        .riyal-symbol-small svg {
            width: 100%;
            height: 100%;
            fill: currentColor;
        }
        
        /* RTL Support for VAT Breakdown */
        [dir='rtl'] .price-breakdown {
            text-align: right;
        }
        
        [dir='rtl'] .vat-line {
            text-align: right;
            direction: rtl;
        }
