@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --text: #334155;
    --gray: #64748b;
    --light-gray: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
    overflow-x: hidden;
}

#logo {
    width: 135px;
    height: 55px;
    margin-right: 5px;
    filter: hue-rotate(125deg);
}

#logo:hover {
    filter: hue-rotate(80deg);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 30%;
    animation-delay: 4s;
    background: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Header */
.header {
    background-color: var(--light);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background-color: transparent;
    color: var(--primary);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid var(--primary);
    transition: all 0.3s;
    font-size: 15px;
}

.back-btn:hover {
    background-color: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
}

/* Main Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    position: relative;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 150%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse-blue 2s infinite;

}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

/* Progress Bar */
.progress-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    width: 16.67%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Form Container */
.form-container {
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--light-gray);
    position: relative;
    overflow: hidden;
}

.form-section {
    display: none;
    animation: slideIn 0.5s ease;
}

.form-section.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 16px;
    margin-top: 1.5rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}

.required {
    color: #ef4444;
}

input,
select,
textarea {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--gray);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%2364748b' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkboxes and Radio Buttons */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: auto;
    margin: 0;
}

.checkbox-item label,
.radio-item label {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
}

/* File Upload */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-upload-label {
    display: block;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.05);
    border: 2px dashed var(--primary);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
}

.file-upload-label:hover {
    background: rgba(37, 99, 235, 0.1);
}

.file-info {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

/* Subdomain Input */
.subdomain-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.subdomain-group input {
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.subdomain-suffix {
    padding: 1rem;
    background: var(--light-gray);
    border: 1px solid var(--light-gray);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--gray);
    white-space: nowrap;
    font-weight: 500;
}

.availability-check {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    padding: 0.5rem;
    border-radius: 8px;
}

.available {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
}

.unavailable {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Color Picker */
.color-input {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

/* Navigation Buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    animation: pulse-blue 2s infinite;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Plan Selection */
.plan-display {
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Conditional Sections */
.conditional {
    display: none;
}

.conditional.show {
    display: block;
}

/* Security Note */
.security-note {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--accent);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
    margin-top: 1rem;
}

/* Error Messages */
.error {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ef4444;
}

.form-group.has-error .error {
    display: block;
}

/* Success Box */
.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--secondary);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.success-box h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-box p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 100px 15px 40px;
    }

    .form-container {
        padding: 2rem;
    }

    .form-section {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .subdomain-group {
        flex-direction: column;
    }

    .subdomain-group input {
        border-radius: 8px 8px 0 0;
        border-right: 1px solid var(--light-gray);
        border-bottom: none;
    }

    .subdomain-suffix {
        border-radius: 0 0 8px 8px;
        border-left: 1px solid var(--light-gray);
        border-top: none;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}