<style>
	.domain-container {
		max-width: 800px;
		margin: 0 auto;
		padding: 30px 20px;
	}
	
	.info-banner {
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		border-radius: 15px;
		padding: 30px;
		margin-bottom: 30px;
		box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
		color: white;
		position: relative;
		overflow: hidden;
	}
	
	.info-banner::before {
		content: '';
		position: absolute;
		top: -50px;
		right: -50px;
		width: 200px;
		height: 200px;
		background: rgba(255,255,255,0.1);
		border-radius: 50%;
	}
	
	.info-banner h4 {
		font-size: 24px;
		font-weight: 600;
		margin-bottom: 15px;
		display: flex;
		align-items: center;
		gap: 12px;
	}
	
	.info-banner h4 i {
		font-size: 28px;
	}
	
	.info-banner p {
		font-size: 16px;
		line-height: 1.7;
		margin-bottom: 8px;
		opacity: 0.95;
	}
	
	.domain-card {
		background: #ffffff;
		border-radius: 20px;
		box-shadow: 0 10px 40px rgba(0,0,0,0.1);
		overflow: hidden;
		border: none;
	}
	
	.domain-header {
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		padding: 25px 30px;
		color: white;
		position: relative;
	}
	
	.domain-header h3 {
		margin: 0;
		font-size: 24px;
		font-weight: 600;
		display: flex;
		align-items: center;
		gap: 12px;
	}
	
	.domain-header h3 i {
		font-size: 28px;
	}
	
	.domain-body {
		padding: 40px;
	}
	
	.form-group {
		margin-bottom: 25px;
	}
	
	.form-group label {
		font-weight: 600;
		color: #333;
		margin-bottom: 10px;
		display: block;
		font-size: 14px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
	
	.form-control {
		border: 2px solid #e0e0e0;
		border-radius: 10px;
		padding: 12px 18px;
		font-size: 15px;
		transition: all 0.3s ease;
		height: auto;
	}
	
	.form-control:focus {
		border-color: #667eea;
		box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
		outline: none;
	}
	
	.form-control[readonly] {
		background-color: #f8f9fa;
		color: #6c757d;
		cursor: not-allowed;
	}
	
	.domain-footer {
		padding: 25px 40px;
		background: #f8f9fa;
		display: flex;
		justify-content: flex-end;
		align-items: center;
	}
	
	.btn-modern {
		padding: 12px 30px;
		border-radius: 10px;
		font-weight: 600;
		font-size: 15px;
		transition: all 0.3s ease;
		border: none;
		cursor: pointer;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}
	
	.btn-primary-modern {
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		color: white;
		box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	}
	
	.btn-primary-modern:hover {
		transform: translateY(-2px);
		box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
		color: white;
	}
	
	.text-muted {
		text-transform: none;
		font-size: 12px;
		font-weight: 400;
		color: #6c757d;
		margin-top: 8px;
		text-align: left;
		letter-spacing: 0.5px;
	}
	
	.warning-box {
		background: #fff3cd;
		border-left: 4px solid #ffc107;
		border-radius: 8px;
		padding: 15px 20px;
		margin-top: 20px;
		display: flex;
		align-items: flex-start;
		gap: 12px;
	}
	
	.warning-box i {
		color: #856404;
		font-size: 20px;
		margin-top: 2px;
	}
	
	.warning-box p {
		margin: 0;
		color: #856404;
		font-size: 14px;
		line-height: 1.6;
	}
	
	@media (max-width: 768px) {
		.domain-container {
			padding: 20px 15px;
		}
		
		.info-banner {
			padding: 25px 20px;
		}
		
		.domain-body {
			padding: 25px 20px;
		}
		
		.domain-footer {
			padding: 20px;
		}
		
		.btn-modern {
			width: 100%;
		}
	}
</style>

<div class="domain-container">
	<div class="info-banner">
		<h4>
			<i class="fas fa-globe"></i>
			Change Domain / Site URL
		</h4>
		<p>🌐 Need to move your site to a new domain? No problem!</p>
		<p>📝 Update your site's domain or URL by entering your new domain information below</p>
		<p>🔐 Make sure you have your purchase code ready for verification</p>
		<p>⚡ The change will be processed securely and your site will be updated accordingly</p>
	</div>

	<div class="domain-card">
		<div class="domain-header">
			<h3>
				<i class="fas fa-link"></i>
				Domain Configuration
			</h3>
		</div>
		
		<form action="<?= base_url("admin/dashboard/request_change_domain");?>" method="post">
			<?= csrf() ;?>
			<div class="domain-body">
				<div class="form-group">
					<label for="site_url">
						<i class="fas fa-globe-americas"></i> 
						New Domain / Site URL
					</label>
					<input type="text" name="site_url" id="site_url" class="form-control" 
						placeholder="https://yournewdomain.com" 
						value="" required>
					<small class="text-muted">
						<i class="fas fa-info-circle"></i> Enter your new domain URL (e.g., https://example.com)
					</small>
				</div>

				<div class="form-group">
					<label for="old_url">
						<i class="fas fa-history"></i> 
						Current Domain / Site URL
					</label>
					<input type="text" name="old_url" id="old_url" class="form-control" 
						placeholder="Your Current URL" 
						value="<?= get_domain(asset_url());?>" 
						readonly>
					<small class="text-muted">
						<i class="fas fa-lock"></i> This is your current domain (read-only)
					</small>
				</div>

				<div class="form-group">
					<label for="code">
						<i class="fas fa-key"></i> 
						Purchase Code
					</label>
					<input type="text" name="code" id="code" class="form-control" 
						placeholder="JAE73-H8TY7-R4Q3F" 
						value="JAE73-H8TY7-R4Q3F" readonly required>
					<small class="text-muted">
						<i class="fas fa-shield-alt"></i> Required for security verification
					</small>
				</div>

				<div class="warning-box">
					<i class="fas fa-exclamation-triangle"></i>
					<p>
						<strong>Important:</strong> Please ensure your new domain is properly configured and accessible before submitting this request. 
						The domain change may take a few moments to process.
					</p>
				</div>

				<input type="hidden" name="site_id" value="<?= $settings['site_id'];?>">
			</div>
			
			<div class="domain-footer">
				<button type="submit" class="btn btn-modern btn-primary-modern">
					<i class="fas fa-check"></i> <?= !empty(lang('submit'))?lang('submit'):"Update Domain";?>
				</button>
			</div>
		</form>
	</div>
</div>