body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9;
    color: #333;
    font-size: 14px;
}

.header-menu {
    background-color: #0D2FF2;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}

.header-menu a {
    color: white;
    text-decoration: none;
    padding: 0 10px;
    font-size: 13px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.container {
    display: flex;
    max-width: 1000px;
    margin: 20px auto;
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.sidebar {
    flex: 0 0 220px;
    padding-right: 20px;
    border-right: 1px solid #eee;
    font-size: 13px;
}

.sidebar-item {
    padding: 5px 0;
    margin-bottom: 15px;
}

.sidebar-item a {
    color: #040F4A;
    text-decoration: none;
    font-weight: bold;
}

.sidebar-item p {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    line-height: 1.4;
}

.sidebar-item strong {
    color: #333;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.main-content {
    flex-grow: 1;
    padding-left: 30px;
}

.form-header {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
    color: #555;
}

.form-header span {
    font-size: 18px;
    color: #888;
    margin-left: 10px;
    font-weight: normal;
}

.form-section-title {
    font-weight: bold;
    font-size: 14px;
    color: #040F4A;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.form-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 12px;
    margin-bottom: 5px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-field label .required {
    color: red;
    margin-left: 2px;
}

.form-field label .optional {
    color: #aaa;
    font-style: italic;
    margin-left: 2px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field select,
.form-field input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #c7c7c7;
    box-sizing: border-box;
    border-radius: 3px;
    font-size: 14px;
    background-color: #fdfdfd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
    color: #555;
    height: 38px;
}

.form-field input[type="file"] {
    height: auto;
    padding: 8px;
}

.form-field input:focus,
.form-field select:focus {
    border-color: #66afe9;
    outline: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.phone-group {
    display: flex;
    gap: 0;
    align-items: center;
}

.phone-group select {
    flex: 0 0 120px;
    border-radius: 3px 0 0 3px;
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 20px 14px;
    appearance: none;
}

.phone-group input {
    flex-grow: 1;
    border-left: none;
    border-radius: 0 3px 3px 0;
}

.form-group.three-cols .form-field {
    flex: 1 1 33%;
}

.mailing-list {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mailing-list p {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.mailing-list button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.password-strength-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.password-strength-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    background-color: #5cb85c;
    transition: width 0.3s;
}

.password-strength-text {
    font-size: 11px;
    color: #5cb85c;
    width: 120px;
    text-align: right;
}

.terms-section {
    margin-top: 30px;
    padding: 15px;
    background-color: #fce6e6;
    border: 1px solid #ebcccc;
    color: #a94442;
    border-radius: 4px;
    font-size: 13px;
}

.terms-section input[type="checkbox"] {
    margin-right: 5px;
}

.terms-section a {
    color: #a94442;
    text-decoration: underline;
}

.final-button-container {
    text-align: right;
    margin-top: 20px;
}

.final-button {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
}

footer {
    text-align: left;
    margin: 30px 0;
    font-size: 12px;
    color: #888;
}

.message-success {
    background: #e6ffed;
    border: 1px solid #c6f0d1;
    color: #0a6c2f;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.message-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #8a1f1f;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .main-content {
        padding-left: 0;
    }

    .form-group {
        flex-direction: column;
        gap: 10px;
    }

    .form-field {
        width: 100%;
    }

    .phone-group {
        flex-direction: column;
    }

    .phone-group select,
    .phone-group input {
        width: 100%;
        border-radius: 3px;
        border: 1px solid #c7c7c7;
        padding-left: 10px;
        background-image: none !important;
    }
}