﻿.home-container {
    min-height: 85vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    /* padding: 10px;*/
}

.registration-form-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1400px;
    padding: 20px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 10px;
    overflow-x: hidden;
  
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 500;
    margin-top: 10px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
    gap: 12px;
}

.form-group {
    flex: 1;
    min-width: 180px;
    margin-bottom: 12px;
}

    .form-group.full-width {
        flex: 0 0 100%;
    }

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.required:after {
    content: " *";
    color: red;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    height: 38px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    padding-right: 28px;
}

    input:focus, select:focus {
        outline: none;
        border-color: #0066cc;
        box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
    }

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .checkbox-group input[type="checkbox"] {
        margin-right: 8px;
    }

.phone-group {
    display: flex;
    gap: 12px;
}

.phone-number {
    flex: 2;
}

.phone-type, .phone-country {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0066cc;
    color: white;
    padding: 0 15px; /* Changed: horizontal padding only */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
    height: 38px;
    margin-left : 1px !important;
    box-sizing: border-box; /* Added */
    line-height: 1; /* Added: reset line-height */
}

    .btn.btn-block {
        display: flex; /* Changed from block to flex */
        width: 100%;
    }

    .btn:hover {
        background-color: #0052a3;
    }

    .btn.btn-outline {
        background-color: transparent;
        border: 1px solid #0066cc;
        color: #0066cc;
    }

        .btn.btn-outline:hover {
            background-color: rgba(0, 102, 204, 0.1);
        }

   /* .btn.btn-block {
        display: block;
        width: 100%;
    }*/

.radio-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    height: 38px;
    box-sizing: border-box;
}

    .radio-container input[type="radio"] {
        margin-right: 8px;
    }

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.validation-summary-errors {
    color: red;
    margin-bottom: 15px;
}

    .validation-summary-errors ul {
        padding-left: 18px;
    }

/* Red border for validation errors */
.validation-error-border {
    border-color: #e74c3c !important;
    box-shadow: 0 0 5px rgba(231, 76, 60, 0.3);
}

input.input-validation-error, select.input-validation-error {
    border-color: red;
}

.field-validation-error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.validation-error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin: 8px 0;
    display: block;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2e2e2e;
    font-size: 14px;
}

.custom-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d5dd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-sizing: border-box;
}

    .custom-textarea:focus {
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
        outline: none;
    }

/* Additional styles for the dependent form */
.dependent-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.dependent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

    .dependent-header h2 {
        margin: 0;
        font-size: 18px;
        color: #333;
    }

.dependent-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    font-size: 12px;
}

    .btn-icon:hover {
        color: #0066cc;
    }

.dependent-form {
    padding: 16px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

/*CSS form NAVBAR*/
.stepper {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    /*margin: 0 0 20px 0;*/
}

.step-item-wrapper {
    display: flex;
    align-items: center;
}

.step-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    cursor: pointer;
    padding: 4px 8px;
}

.circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    color: #333;
    background-color: white;
    font-size: 12px;
}

.step-item.active .circle {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.label {
    font-size: 14px;
    color: #333;
}

.step-item.active .label {
    color: #0d6efd;
    font-weight: bold;
}

.step-line {
    width: 30px;
    height: 1px;
    background-color: #ccc;
    margin: 0 8px;
}

.section-divider {
    height: 1px;
    background-color: #cce0f5;
    margin-top: 8px;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-container {
        padding: 5px;
    }

    .registration-form-container {
        padding: 15px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .form-row {
        gap: 8px;
    }

    .form-group {
        min-width: 150px;
    }
}

* {
    box-sizing: border-box;
}



#overlay-Captcha {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 1000;
}

#popup-Captcha {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 1001;
    padding: 20px;
}

.header {
    padding: 20px 24px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 24px;
}

    .header h2 {
        margin: 0 0 20px 0;
        font-size: 20px;
        color: #333;
        font-weight: 600;
    }

.close {
    float: right;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    margin-top: -5px;
}


#openBtn {
    background: #1976d2;
    width: auto;
    padding: 12px 24px;
}