@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --primary: #4834d4;
    --secondary: #341f97;
    --accent: #21d397;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-family: 'Poppins', sans-serif;
}

.container {
    max-width: 900px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.container .title {
    font-size: 28px;
    font-weight: 600;
    position: relative;
    color: var(--dark);
    margin-bottom: 25px;
    text-align: center;
}

.container .title::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    height: 3px;
    width: 50px;
    border-radius: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.content form .user-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 20px 0 12px 0;
}

form .user-details .input-box {
    margin-bottom: 20px;
    width: calc(100% / 2 - 20px);
}

form .input-box span.details {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 14px;
}

.user-details .input-box input,
.user-details .input-box select {
    height: 45px;
    width: 100%;
    outline: none;
    font-size: 15px;
    border-radius: 8px;
    padding-left: 15px;
    border: 1px solid #ddd;
    border-bottom-width: 2px;
    transition: all 0.3s ease;
    background: #fff;
}

.user-details .input-box input:focus,
.user-details .input-box input:valid,
.user-details .input-box select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(72, 52, 212, 0.1);
}

form .gender-details .gender-title {
    font-size: 20px;
    font-weight: 500;
}

form .category {
    display: flex;
    width: 80%;
    margin: 14px 0;
    justify-content: space-between;
}

form .category label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

form .category label .dot {
    height: 18px;
    width: 18px;
    border-radius: 50%;
    margin-right: 10px;
    background: #d9d9d9;
    border: 5px solid transparent;
    transition: all 0.3s ease;
}

#dot-1:checked~.category label .one,
#dot-2:checked~.category label .two,
#dot-3:checked~.category label .three {
    background: var(--primary);
    border-color: #d9d9d9;
}

form input[type="radio"] {
    display: none;
}

form .button {
    height: 45px;
    margin: 35px 0;
    display: flex;
    justify-content: center;
}

form .button a {
    height: 100%;
    width: 40%;
    margin-left: 10%;
    border: none;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px dashed #047cea;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
}

form .button input {
    height: 100%;
    width: 30%;
    margin-left: 45%;
    border-radius: 8px;
    border: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

form .button input:hover {
    background: linear-gradient(-135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media(max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 20px;
    }
    
    form .user-details .input-box {
        margin-bottom: 15px;
        width: 100%;
    }
    
    form .category {
        width: 100%;
    }
    
    .content form .user-details {
        max-height: none;
        overflow-y: visible;
    }
    
    .user-details::-webkit-scrollbar {
        width: 5px;
    }
    
    form .button {
        flex-direction: column;
        gap: 15px;
    }
    
    form .button a,
    form .button input {
        width: 100%;
        margin: 0;
    }
}

@media(max-width: 459px) {
    .container .content .category {
        flex-direction: column;
    }
    
    .container .title {
        font-size: 24px;
    }
}

/* Modern button styles */
.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Alert styles */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Form validation */
.form-control.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.is-valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.invalid-feedback {
    color: var(--danger);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

.valid-feedback {
    color: var(--success);
    font-size: 14px;
    margin-top: 5px;
    display: block;
}