body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.logo-wrapper {
    text-align: center;
    margin-bottom: 6px;
}

.logo-image {
    max-width: 180px;
    height: auto;
}

.brand-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #4a90e2;
}

.success-screen {
    display: none;
    text-align: center;
    padding: 30px 10px 10px 10px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #28a745;
    margin: 0 auto 15px auto;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Padding doesn't affect width */
    font-size: 14px;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #357abd;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.secondary-button {
    width: auto;
    padding: 8px 14px;
    background-color: #6c757d;
    font-size: 14px;
    margin-bottom: 15px;
}

.secondary-button:hover {
    background-color: #5a6268;
}

.guardian-row {
    border: 1px solid #eee;
    padding: 10px 10px 5px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
}

.guardian-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    background: transparent;
    border: none;
    color: #999;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: auto;
    height: auto;
}

.guardian-remove:hover {
    color: #333;
}

.form-step {
    display: none;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 5px;
}

.step-item {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 12px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: #6c757d;
}

.step-item.active {
    background-color: #4a90e2;
    color: #ffffff;
    font-weight: 600;
}

.step-item.completed {
    background-color: #28a745;
    color: #ffffff;
}

.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.step-nav .primary-button {
    flex: 1;
}

.summary-content h4 {
    margin-top: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

.summary-content p,
.summary-content ul {
    margin: 0 0 8px 0;
    font-size: 13px;
}

.summary-content ul {
    padding-left: 18px;
}

.message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.field-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 3px;
}

.section-title {
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #4a90e2;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
}

.checkbox-group label {
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
    display: inline;
}

.checkbox-group a {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 15px;
    line-height: 1.6;
    font-size: 14px;
    padding-right: 10px;
}
