/* US Bank Replica CSS */

/* U.S. Bank Circular Web Fonts */
@font-face {
    font-family: 'U.S.BankCircularWeb';
    src: url('https://content.usbank.com/content/dam/onlinebanking/common/static/fonts/U.S.BankCircularWeb-Regular.woff2') format('woff2'),
         url('https://content.usbank.com/content/dam/onlinebanking/common/static/fonts/U.S.BankCircularWeb-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'U.S.BankCircularWeb';
    src: url('https://content.usbank.com/content/dam/onlinebanking/common/static/fonts/U.S.BankCircularWeb-Medium.woff2') format('woff2'),
         url('https://content.usbank.com/content/dam/onlinebanking/common/static/fonts/U.S.BankCircularWeb-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'U.S.BankCircularWeb';
    src: url('https://content.usbank.com/content/dam/onlinebanking/common/static/fonts/U.S.BankCircularWeb-Bold.woff2') format('woff2'),
         url('https://content.usbank.com/content/dam/onlinebanking/common/static/fonts/U.S.BankCircularWeb-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'U.S.BankCircularWeb', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f8fa;
    color: #1a1a1a;
    line-height: 1.5;
    font-weight: 400;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #f7f8fa;
}

.header {
    background-color: #ffffff;
    border-bottom: 1px solid #d7dbe0;
    padding: 20px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1168px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 36px;
    width: auto;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.header h1 {
    margin: 0;
    font-size: 24px;
    color: #001e79;
    font-weight: 400;
}

.header .loan-type {
    font-size: 16px;
    font-weight: 400;
    color: #5f6368;
    font-family: 'U.S.BankCircularWeb', Circular-USB, sans-serif;
    background-color: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.main-wrapper {
    display: flex;
    max-width: 1168px;
    margin: 0 auto;
    gap: 48px;
    padding: 0 32px 48px 32px;
    align-items: flex-start;
}

.content {
    background-color: #ffffff;
    padding: 56px 48px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e8eaed;
    flex: 2;
    position: relative;
}

.main-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.form-section {
    flex: 2;
}

.help-section {
    flex: 1;
    background-color: #f8f9fb;
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid #e1e3e7;
    min-width: 340px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.help-section h3 {
    margin-top: 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.help-section p {
    font-size: 16px;
    line-height: 1.5;
    color: #4a5568;
    margin-bottom: 16px;
}

.help-section .phone {
    color: #0066b2;
    font-weight: 700;
    font-size: 24px;
    display: block;
    margin: 20px 0;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.help-section .phone:hover {
    text-decoration: underline;
}

.help-section .hours {
    font-size: 15px;
    color: #5f6368;
    line-height: 1.6;
    font-weight: 400;
}

.progress-container {
    max-width: 1168px;
    margin: 0 auto;
    padding: 32px 32px 0 32px;
}

.progress-bar {
    background-color: #e8eaed;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(90deg, #0066b2 0%, #0066b2 100%);
    height: 100%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.progress-text {
    text-align: right;
    color: #5f6368;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 40px;
}

.section-title {
    color: #1a1a1a;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: #5f6368;
    font-size: 18px;
    margin-bottom: 48px;
    line-height: 1.5;
    font-weight: 400;
}

.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #2c2c2c;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'U.S.BankCircularWeb', Circular-USB, sans-serif;
}

.form-group input,
.form-group select,
.usb--basic-input {
    width: 100%;
    font-family: 'U.S.BankCircularWeb', Circular-USB, sans-serif !important;
    vertical-align: middle;
    font-weight: 400;
    line-height: 1.5;
    margin: 0.313rem auto auto auto;
    background-color: rgba(0,0,0,0);
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #858585;
    color: #2c2c2c;
    font-size: 1rem;
    margin-top: 0.313rem;
    padding: 0 0 0.25rem;
    box-sizing: inherit;
    transition: border-color 0.2s ease;
    appearance: none;
}

/* Specific styling for U.S. Bank basic input class */
.usb--basic-input {
    -webkit-text-size-adjust: 100%;
    -webkit-locale: "en";
}

.form-group input::placeholder,
.form-group select::placeholder,
.usb--basic-input::placeholder {
    color: #858585;
    font-weight: 400;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.usb--basic-input:focus {
    outline: none;
    border-bottom-color: #0066b2;
    border-bottom-width: 2px;
}

.form-group input:hover,
.form-group select:hover,
.usb--basic-input:hover {
    border-bottom-color: #2c2c2c;
}

.form-group select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23858585" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 30px;
    cursor: pointer;
}

.form-group select:focus {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%230066b2" d="M2 0L0 2h4zM2 5L0 3h4z"/></svg>');
}

/* Password field with show button */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 60px;
}

.password-toggle {
    position: absolute;
    right: 0;
    bottom: 0.25rem;
    background: none;
    border: none;
    color: #858585;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    line-height: 1.5;
}

.password-toggle:hover {
    color: #2c2c2c;
}

/* Input focus states */
.form-group input:focus + .password-toggle {
    color: #0066b2;
}

/* Better spacing for form elements */
.form-group {
    margin-bottom: 32px;
    position: relative;
}

.form-group.focused label {
    color: #0066b2;
    font-weight: 500;
}

/* Enhanced input validation states */
.usb--basic-input:invalid {
    border-bottom-color: #d93025;
}

.usb--basic-input:valid {
    border-bottom-color: #137333;
}

.usb--basic-input:invalid:focus {
    border-bottom-color: #d93025;
    border-bottom-width: 2px;
}

/* Smooth transitions for all interactive elements */
.usb--basic-input,
.form-group input,
.form-group select {
    transition: border-color 0.2s ease, border-width 0.2s ease;
}

/* Better spacing for mobile */
@media (max-width: 480px) {
    .form-group {
        margin-bottom: 28px;
    }
    
    .usb--basic-input,
    .form-group input,
    .form-group select {
        font-size: 16px;
        padding: 0 0 0.5rem;
    }
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #0066b2;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 0;
    cursor: pointer;
    color: #202124;
    line-height: 1.4;
}

.form-group .optional {
    color: #80868b;
    font-weight: 400;
    font-size: 14px;
    margin-left: 8px;
}

.form-group .hint {
    font-size: 14px;
    color: #5f6368;
    margin-top: 8px;
    font-weight: 400;
    line-height: 1.4;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.btn {
    background-color: #0066b2;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 24px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

.btn:hover {
    background-color: #004d8b;
    box-shadow: 0 2px 8px rgba(0, 102, 178, 0.2);
}

.btn:active {
    background-color: #003d6b;
}

.btn-secondary {
    background-color: #ffffff;
    color: #0066b2;
    border: 1px solid #c4c7c5;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: inherit;
    font-weight: 500;
    min-height: 48px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
    border-color: #0066b2;
}

.btn-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-group .btn {
    width: auto;
    flex: 1;
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 12px;
    color: #666;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.notice {
    background-color: #e8f4fd;
    border-left: 4px solid #0077cc;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.security-info {
    background-color: #fff8e6;
    border-left: 4px solid #ffcc00;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.progress-bar {
    background-color: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    margin: 20px 0 30px 0;
    overflow: hidden;
}

.progress-fill {
    background-color: #0066cc;
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

.section-title {
    color: #00205B;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

.login-options {
    margin: 30px 0;
}

.divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    background-color: white;
    padding: 0 15px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 24px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #0066b2;
    cursor: pointer;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 16px;
    margin-bottom: 0;
    cursor: pointer;
    color: #1a1a1a;
    line-height: 1.5;
}

.form-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.link {
    color: #0066b2;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

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

.link-button {
    background-color: transparent;
    border: none;
    color: #0066b2;
    text-decoration: underline;
    font-weight: 500;
    padding: 8px;
    margin-top: 8px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}

.link-button:hover {
    text-decoration: none;
    color: #004d8b;
}

.divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #e1e3e7;
}

.divider span {
    background-color: white;
    padding: 0 16px;
    position: relative;
    color: #5f6368;
    font-size: 14px;
    font-weight: 400;
}

.link {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

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

.disclosure {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin: 30px 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.disclosure h4 {
    color: #333;
    font-size: 15px;
    margin-top: 0;
}

.disclosure ol {
    margin: 10px 0;
    padding-left: 20px;
}

.disclosure li {
    margin-bottom: 10px;
}

.secure-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: #00205B;
    color: white;
    border-radius: 4px;
    margin-top: 30px;
}

.secure-badge::before {
    content: '';
    font-size: 20px;
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
        gap: 32px;
        padding: 0 16px 32px 16px;
    }
    
    .content {
        padding: 32px 24px;
    }
    
    .help-section {
        position: static;
        padding: 24px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .header {
        padding: 16px 16px;
    }
    
    .progress-container {
        padding: 24px 16px 0 16px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .secure-badge {
        padding: 20px 16px !important;
    }
}
