:root {
    --bg-dark: #121212;
    --card-bg: rgba(30, 30, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --primary-color: #4395FF;
    --primary-hover: #297be6;
    --success-color: #10B981;
    --error-color: #EF4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* Background Animated Blobs */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    left: -50px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: #6D28D9;
    bottom: -50px;
    right: -50px;
    animation-delay: 2s;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(30px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Container */
.app-container {
    width: 100%;
    max-width: 700px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header .logo {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps */
.step {
    display: none;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    margin-top: -1rem;
}

/* Form Elements */
.input-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .input-row {
        flex-direction: column;
        gap: 0;
    }
}

.input-group {
    flex: 1;
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #E2E8F0;
}

input,
select {
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

select option {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

input:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 149, 255, 0.2);
}

.address-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.family-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.family-box h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.mt-3 {
    margin-top: 1rem;
}

.hidden {
    display: none !important;
}

/* Status specific */
.status-indicator {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: 600;
}

.status-ok {
    color: var(--success-color);
}

.status-err {
    color: var(--error-color);
}

/* Buttons */
.actions {
    margin-top: 2rem;
    text-align: right;
}

.space-between {
    display: flex;
    justify-content: space-between;
}

.btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(67, 149, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.feedback-box {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(67, 149, 255, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-align: center;
    font-weight: 500;
}

.dynamic-member {
    padding: 1rem;
    border: 1px dashed var(--border-color);
    margin-bottom: 1rem;
    border-radius: 8px;
    position: relative;
}

.btn-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    color: var(--error-color);
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
}