<div class="p-6 space-y-5">
    <h3 class="text-base font-semibold text-t1">Add Custom Domain</h3>

    <div>
        <label class="block text-xs font-medium text-t2 mb-1.5">Hostname <span class="text-red">*</span></label>
        <input wire:model="hostname" type="text" placeholder="links.yourdomain.com"
               class="w-full px-3 py-2 bg-s2 border border-white/[.06] rounded-lg text-sm text-t1 placeholder-t3
                      focus:outline-none focus:ring-1 focus:ring-blue/50 focus:border-blue/50" />
        @error('hostname')<p class="mt-1 text-xs text-red">{{ $message }}</p>@enderror
        <p class="mt-1.5 text-xs text-t3">Enter the domain you want to use (e.g. links.example.com)</p>
    </div>

    <div class="bg-s2 border border-white/[.06] rounded-lg p-4 text-xs text-t2 space-y-1">
        <p class="font-medium text-t1">After adding, you'll need to:</p>
        <p>1. Add a CNAME record pointing to <span class="font-mono text-blue">nimu.li</span></p>
        <p>2. Add a TXT record for verification</p>
        <p>3. Click "Verify" to activate SSL</p>
    </div>

    <div class="flex justify-end gap-2 pt-2">
        <x-ui.button wire:click="closeModal" variant="ghost" label="Cancel" />
        <x-ui.button wire:click="save" action="save" label="Add Domain" loading-label="Adding..." />
    </div>
</div>
