/* Scoped styles to avoid conflicts with main layout */
body {
    background: #f8f9fa;
}

/* Form container - scope it to avoid navbar conflicts */
main .container {
    max-width: 950px;
    width: 100%;
    margin: 40px auto;
    display: flex;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: white;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.image-section {
    flex: 1;
    background: url("{{ asset('image/registration.png') }}") no-repeat center center / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-section h2 {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 16px;
}

.form-section {
    flex: 1;
    padding: 50px 40px;
}

.tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.tabs button,
.tab-btn {
    flex: 1;
    padding: 12px;
    background: #f6f6f6;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
    outline: none;
}

.tabs button.active,
.tab-btn.active {
    background: #fff;
    color: #0d6efd;
    border-bottom: 3px solid #0d6efd;
}

.tabs button:hover,
.tab-btn:hover {
    background: #e3f2fd;
}

.tabs button.active:hover,
.tab-btn.active:hover {
    background: #fff;
}

.form-box {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.form-box.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.form-box h2 {
    color: #0d6efd;
    margin-bottom: 20px;
    font-weight: 700;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

/* Radio button styling */
.input-group input[type="radio"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.input-group .d-flex label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    transition: color 0.3s;
}

.input-group .d-flex label:hover {
    color: #0d6efd;
}

.form-box a {
    font-size: 14px;
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
    transition: all 0.3s;
}

.form-box a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.d-flex.justify-content-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alt-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.alt-text span {
    color: #0d6efd;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.alt-text span:hover {
    color: #0056b3;
    text-decoration: underline;
}

footer {
    background: #000;
    color: #fff;
    width: 100%;
    padding: 40px 20px;
}

footer h3,
footer p {
    margin-bottom: 10px;
}

@media(max-width: 850px) {
    .container {
        width: 95%;
    }

    .image-section {
        height: 200px;
    }
}

/* contact us form  */

.contact-container {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
}

.contact-box {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.step-heading {
    text-transform: uppercase;
    color: #3498db;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.step-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 30px;
}

.contact-box h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

button[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #3498db;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}