@font-face {
    font-family: 'Minerva Modern';
    src: url('fonts/fonnts.com-MinervaModern_Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #fff;
    color: #000;
    line-height: 1.5;
    padding: 20px;
    margin: 0;
    min-height: 100vh;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Logo */
.logo-container {
    padding: 32px 34px 24px;
    text-align: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.logo-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background-color: #fff;
    min-height: 64px;
}

.header-title {
    font-family: 'Minerva Modern', Arial, Helvetica, sans-serif;
    font-size: 28px;
    font-weight: normal;
    margin: 0;
    text-align: center;
}

/* Mandatory Note */
.mandatory-note {
    padding: 16px 0 0;
    font-size: 13px;
    color: #666;
}

/* Form Container - bordered section */
.form-container {
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.marketing-text-container {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 0 32px;
}

/* Form */
.form {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
}

/* Form Section (for marketing/terms) */
.form-section {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
}

/* Button Container */
.button-container {
    padding: 0 32px 32px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.button-container .confirm-button {
    margin-top: 0;
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
}

.required-asterisk {
    color: #e74c3c;
}

.form-input {
    width: 100%;
    height: 56px;
    border: 1px solid #999;
    border-radius: 28px;
    padding: 0 20px;
    font-size: 16px;
    background-color: #fff;
    color: #000;
    font-family: inherit;
    outline: none;
}

.form-input::placeholder {
    color: #999;
}

.form-input:focus {
    border-color: #999;
}

.form-input.error {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

/* Password Requirements */
.password-requirements {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.requirement-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #e74c3c;
    transition: color 0.2s;
}

.requirement-item.valid .requirement-icon {
    color: #27ae60;
}

.requirement-text {
    color: #e74c3c;
    transition: color 0.2s;
}

.requirement-item.valid .requirement-text {
    color: #27ae60;
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

.chevron-icon {
    position: absolute;
    right: 20px;
    pointer-events: none;
    color: #666;
}

/* Date Wrapper */
.date-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input {
    padding-left: 48px;
    padding-right: 20px;
}

.date-input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.calendar-icon {
    position: absolute;
    left: 20px;
    pointer-events: none;
    color: #666;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 56px;
}

.eye-button {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.eye-slash {
    transition: opacity 0.2s;
}

/* Phone Number Row */
.phone-row {
    display: flex;
    gap: 8px;
}

.phone-code-wrapper {
    flex: 0 0 auto;
    width: 100px;
}

.phone-code {
    width: 100%;
    padding-right: 44px;
}

.phone-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.phone-input {
    width: 100%;
}

.phone-example-container {
    margin-top: 6px;
    padding-left: calc(100px + 8px + 20px);
}

.phone-example {
    font-size: 12px;
    color: #999;
    margin: 0;
    padding: 0;
}

/* Marketing Text */
.marketing-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    margin-top: 8px;
}

.marketing-text strong {
    color: #000;
    font-weight: 600;
}

/* Radio Group */
.radio-group {
    margin-bottom: 20px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    padding-left: 32px;
}

.radio-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    border: 2px solid #d9d9d9;
    border-radius: 50%;
    background-color: #fff;
    transition: all 0.2s;
}

.radio-input:checked ~ .radio-custom {
    border-color: #000;
}

.radio-input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #000;
}

.radio-text {
    font-size: 14px;
    color: #000;
    line-height: 1.5;
}

.radio-group .error-message {
    margin-top: 8px;
    margin-left: 0;
}

/* Terms Text */
.terms-text {
    font-size: 13px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 24px;
}

.terms-link {
    color: #000;
    text-decoration: underline;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Confirm Button */
.confirm-button {
    width: 100%;
    height: 56px;
    background-color: #4a4a4a;
    color: #fff;
    border: none;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    margin-top: auto;
    transition: background-color 0.2s;
}

.confirm-button:hover {
    background-color: #3a3a3a;
}

.confirm-button:active {
    background-color: #4a4a4a;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 90%;
        max-width: 100%;
    }
    
    .form {
        padding: 20px 24px;
    }
    
    .mandatory-note {
        padding: 16px 24px 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
    }
    
    .form {
        padding: 16px;
    }
    
    .mandatory-note {
        padding: 12px 16px 0;
    }
    
    .header-title {
        font-size: 24px;
    }
}
