@font-face {
       font-family: 'Graphik Regular';
       src: url('/media/vuykl5ha/graphik-regular.woff') format('woff');
              font-display: swap;
}

@font-face {
       font-family: 'Graphik Light';
       src: url('/media/yndn4grs/graphik-light.woff') format('woff');
              font-display: swap;
}

@font-face {
       font-family: 'Graphik Bold';
       src: url('/media/ik4jhkme/graphik-semibold-web.ttf') format('truetype');
       font-display: swap;
}

:root{
    --text: #1f2937;         /* dark slate */
    --muted: #5b616e;        /* gray for labels */
    --border: #e5e7eb;       /* light divider */
    --primary-color: #E60000;       /* MUFG red buttons */
    --primary-hover: #E60000; /* darker red hover */
    --primary-ghost: #fff; /* soft red for ghost button */
    --error-color: #dc2626;  /* error red */
    --success-color: #059669; /* success green */
    --primary-font: 'Graphik Regular', sans-serif;
    --secondary-font: 'Graphik Light', sans-serif;
    --header-font: 'Graphik Bold', sans-serif;
    --header-font-size: 24px;
    --header-color: #3c342f;
    --radius: 12px;
    --button-radius: 24px;
    --body-font-size:16px;
    --smaller-font-size: 13px;
    --maxw: 600px;
}

html, body {
    background: #fff;
    color: var(--text);
    font-family: var(--primary-font);
    line-height: 1.55;
    font-size: var(--body-font-size);
    margin: 0;
    font-variant-numeric: tabular-nums;
    height: 100%;
}

/* Sticky Footer Layout */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}


/* Security Hardening */
[data-sensitive="true"] {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: text;
    /* Prevent text selection except when focused */
}

[data-sensitive="true"]:focus {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent form data caching */
.form-input[autocomplete="off"] {
    background-color: #fff !important;
}

/* Header */
.page-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-logo {
    max-height: 50px;
    width: auto;
}

/* Main Layout */
.page {
    max-width: var(--maxw);
    margin: 0 auto;
}

/* Loading States */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sections */
.section {
    padding: 15px 0;
}

.section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.login-section .section {
    border-top: none;
    padding: 0px;
}

h1, h2 {
    margin: 0 0 var(--body-font-size);
    font-size: var(--header-font-size);
    font-family: var(--header-font);
    color: var(--heading-color);
}
h1{
    font-size: 40px;
    font-weight: bold;
    text-align: center;
        border-bottom: 1px solid var(--border);

}
h2{
    border-bottom: 1px solid var(--border);
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.profile-subtitle {
    color: var(--muted);
    font-size: var(--body-font-size);
    margin: 8px 0 0 0;
}

/* Information Display */
.grid-rows {
    display: grid;
    gap: 20px 28px;
}

.row {
    display: grid;
    grid-template-columns: 207px 1fr;
    gap: 28px;
    align-items: start;
}

dt {
    margin: 0;
    color: var(--header-color);
    font-size: var(--body-font-size);
    font-weight: bold;
}

dt .sub {
    display: block;
    font-weight: 700;
    color: var(--muted);
}

dd {
    margin: 0;
    font-size: var(--body-font-size);
    color: var(--text);
}

.names {
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.value-strong {
    font-weight: 700;
    letter-spacing: 0.2px;
}

.note {
    margin-top: 6px;
    font-size: var(--smaller-font-size);
    color: var(--muted);
    font-style: italic;
}

.sub {
    display: block;
    font-weight: 700;
    color: var(--muted);
}

/* Mini two-column table for Name / IRD number */
.mini-table {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 10px 24px;
    margin-top: 6px;
    width: 100%;
}

.mini-table-header {
    font-weight: 700;
    color: var(--muted);
    font-size: 14px;
    display: contents;
}

.mini-row {
    display: contents; /* allows grid alignment per cell */
}

.mini-row .names {
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mini-row [role="cell"]:last-child {
    font-variant-numeric: tabular-nums;
}


.holder-ird{
  font-family: var(--primary-font);
  color: var(--text);
  max-width: 720px;
}

/* Hide heading but keep for screen readers */
.visually-hidden{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0);
  white-space:nowrap; border:0;
}

/* Base row layout: two columns */
.ird-row{
  display: grid;
  grid-template-columns: 1fr 280px; /* name | IRD */
  gap: 16px 24px;
  align-items: start;
  padding: 10px 0;
}

/* Header styling */
.ird-header{
  padding-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.ird-header .ird-col{
  font-weight: bold;
  color: var(--header-color);
  font-size: var(--body-font-size);
}

/* Cells */
.ird-col{
  font-size: var(--body-font-size);
}

.col-ird{
  text-align: left;                
  font-variant-numeric: tabular-nums; 
}

/* Spacing between data rows */
.ird-row + .ird-row:not(.ird-header){
  border-top: 0;
  margin-top: 4px;
}


/* Horizontal divider line */
.hr {
    border-top: 1px solid var(--border);
    margin: 8px 0 0;
}

/* Forms */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
}

.input-wrapper {
    position: relative;
    flex: 1;
}

.form-label {
    font-weight: 600;
    font-size: var(--body-font-size);
    color: var(--heading);
    flex-shrink: 0;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-icon {
    background: none;
    border: none;
    color: var(--body-font-color);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}


.form-help-popup {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #f8fafc;
    border: 2px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-top: 0.25rem;
}

.help-content {
    padding: 1rem;
    position: relative;
}

.help-content p {
    margin: 0 auto;
    color: var(--body-font-color);
    font-size: 0.875rem;
    line-height: 1.5;
    width: 98%;
}

.help-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    transition: all 0.3s ease;
}

.help-close:hover {
    color: var(--body-font-color);
}


.help-section {
    background: var(--background-light, #f8fafc);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.help-section h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: var(--heading);
    font-weight: 600;
}

.help-section p {
    margin: 0 0 0.75rem 0;
    color: var(--text);
}

.help-section ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text);
}

.help-section li {
    margin-bottom: 0.375rem;
}

.help-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.help-section a:hover {
    text-decoration: underline;
}

.required {
    color: var(--error-color);
}

.form-input,
.form-textarea {
    padding: 0.875rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: var(--body-font-size);
    font-family: var(--primary-font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    color: var(--text);
    width: 100%;
    flex: 1;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}




.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: var(--primary-font);
}

/* Typeahead */
.typeahead-wrapper {
    position: relative;
    flex: 1; /* Take remaining space in flex container */
    width: 100%;
    min-width: 0; /* Prevents flex item from being too wide */
    box-sizing: border-box;
}

.typeahead-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 41%);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.registry-typeahead-option {
    padding: 0.875rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.15s ease;
}

.registry-typeahead-option:hover,
.registry-typeahead-option.active {
    background: color-mix(in oklab, var(--primary-color) 5%, transparent);
}

.registry-typeahead-option:last-child {
    border-bottom: none;
}

.issuer-code {
    font-weight: 600;
    color: var(--heading);
}

.issuer-name {
    font-size: 14px;
    color: var(--muted);
    margin-top: 2px;
}

/* Buttons */
.btn-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0px;
}

.btn {
    appearance: none;
    border: 0;
    border-radius: var(--button-radius);
    padding: 12px 32px;
    min-width: 200px;
    min-height: 42px;
    font-weight: 700;
    font-size: var(--body-font-size);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
    font-family: var(--primary-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
}

.update-btn{
    /* Explicitly inherit all .btn properties since HTML only has btn-primary update-btn */
    appearance: none;
    border-radius: var(--button-radius);
    padding: 12px 32px;
    min-width: 240px; /* Wider for better text spacing */
    min-height: 42px;
    font-weight: 700;
    font-size: var(--body-font-size);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
    font-family: var(--primary-font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    text-decoration: none;
    -webkit-text-size-adjust: none;}

.update-btn:hover {
    opacity:  0.8;
    text-decoration: none;
}
.update-btn a:hover{
    text-decoration: none!important;
}

.btn:hover{
    opacity: 0.8;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color);
}

.btn-primary:hover { 
    background: var(--primary-hover); 
    border-color: var(--primary-hover);
}

.btn-ghost {
    background: var(--primary-ghost);
    color: var(--primary-hover);
    border: 2px solid var(--primary-color);
}

.btn-ghost:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-disabled,
.btn:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.btn-disabled:hover,
.btn:disabled:hover {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    border-color: #e5e7eb !important;
    opacity: 0.6 !important;
}

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Button content alignment */
#login-btn-text,
#login-btn-spinner,
#submit-btn-text, 
#submit-btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 20px;
    line-height: 1.2;
}

/* Consistent button widths */
#login-submit-btn {
    min-width: 140px;
}

#submit-request-btn {
    min-width: 180px;
}

/* Alerts and Messages */
.error-message {
    padding: 1rem;
    background: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.help-text {
    background: #f9fafb;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1rem;
}

.help-text p {
    margin: 0;
    color: var(--muted);
    font-size: var(--body-font-size);
    line-height: 1.6;
}

/* Issuer Logo */
.issuer-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    line-height: 1;
}

.issuer-section img {
    max-height: 80px;
    max-width: 250px;
    object-fit: contain;
    line-height: 1;
}

/* Tables */
.table-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.holdings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--body-font-size);
    background: #fff;
}

.holdings-table thead {
    background: #f9fafb;
}

.holdings-table th,
.holdings-table td {
    padding: 12px var(--body-font-size);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.holdings-table th {
    font-weight: 700;
    color: var(--heading);
    font-size: 14px;
}

.holdings-table td {
    color: var(--text);
}

.holdings-table .text-right {
    text-align: right;
}

.holdings-table .text-center {
    text-align: center;
}

.holdings-table tbody tr:hover {
    background: #f9fafb;
}

/* FIN Request */
.fin-block {
    margin-top: 10px;
}

.fin-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 18px;
    font-weight: 600;
    cursor: pointer;
}

.fin-check input[type="checkbox"]{
    width: 18px; 
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.fin-check input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}



.submit-wrap {
    margin-top: 1.5rem;
}

/* Footer - Sticky Footer */
.page-footer {
    background: #f9fafb;
    border-top: 1px solid var(--border);
    padding: 2rem 1rem;
    text-align: center;
    margin-top: auto; /* Push footer to bottom */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.page-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Accessibility */
a, button, input[type="checkbox"] {
    outline: none;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Hide heading but keep for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* IRD Holders Table - Standalone Table Section */
.ird-table {
    width: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--border);
}

.ird-row {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.ird-row:last-child {
    border-bottom: none;
}

.ird-header {
    background: #f9fafb;
    font-weight: 700;
    color: var(--heading);
}

.ird-col {
    display: flex;
    align-items: center;
    min-height: 20px;
}


/* Hide/Show Sections */
.login-section,
.profile-section,
.loading-section {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Mobile: stack rows, add inline labels for the right column */
@media (max-width: 720px){
  .ird-row{
    grid-template-columns: 1fr;    /* stack */
    gap: 6px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .btn-bar {
    margin-top: 15px;
  }

    .ird-row {
        display: block !important;
        grid-template-columns: none !important;
    }

      .ird-table {
        background: transparent;
        box-shadow: none;
        border: none;
        overflow: visible;
    }
    
    .ird-row:last-child {
        margin-bottom: 0;
    }
    
    .ird-col {
        display: block !important;
        margin-bottom: 12px;
        min-height: auto !important;
        align-items: flex-start !important;
        padding: 0;
    }
    
    .ird-col:last-child {
        margin-bottom: 0;
    }
  
  
  .ird-header{
    display: none!important;  
  }
    
    .page{
        box-shadow: none;
    }
    .holdings-table th,
    .holdings-table td {
        padding: 6px 8px;
        font-size: var(--body-font-size);
    }
    
    /* Extra small mobile adjustments for IRD table */
    .ird-row {
        padding: 12px;
    }
    
    .ird-col::before {
        font-size: var(--body-font-size);
    }


    .page {
        padding: 0 var(--body-font-size);
        margin: 16px auto 60px;
    }
    
    .profile-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .btn-bar {
        width: 100%;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
        min-width: 160px; /* Smaller min-width for mobile */
        padding: 12px 20px; /* Slightly smaller padding for mobile */
    }
    
    .row { 
        grid-template-columns: 1fr; 
        gap: 8px; 
    }
    
    dt, dd { 
        font-size: var(--body-font-size);
    }
    
    .mini-table{
        grid-template-columns: 1fr 1fr;
    }
    
    .form-card {
        padding: 1.5rem 1rem;
    }
    
    /* Stack form fields vertically on mobile */
    .form-group {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    
    .form-label {
        min-width: auto;
        padding-bottom: 0.25rem;
    }
    
    .help-section {
        padding: 1rem;
    }
    
    .help-section h3 {
        font-size: 0.95rem;
    }
    
    .page-header{
        margin-bottom: 10px;
    }
    
    h1{
        font-size: 34px;
    }
 h2 {
        font-size: 24px;
    }
    
    .holdings-table {
        font-size: var(--body-font-size);
    }
    
    .holdings-table th,
    .holdings-table td {
        padding: 8px 12px;
    }
    
    /* Make table horizontally scrollable on small screens */
    .table-card {
        overflow-x: auto;
    }
    
    .holdings-table {
        min-width: 600px;
    }
    
    /* IRD Table mobile responsive styles */
    .ird-table {
        background: transparent;
        box-shadow: none;
        border: none;
        overflow: visible;
    }
    
    .ird-header {
        display: none;
    }
    
    .ird-row {
        display: block;
        grid-template-columns: none;
        gap: 0;
        background: #fff;
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 12px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .ird-row:last-child {
        margin-bottom: 0;
    }
    
    .ird-col {
        display: block;
        margin-bottom: 12px;
        min-height: auto;
        padding: 0;
    }
    
    .ird-col:last-child {
        margin-bottom: 0;
    }
    
    .ird-col::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--header-color);
        display: block;
        font-size: var(--body-font-size);
        margin-bottom: 4px;
    }
}

/* Secure Token Pre-fill Styling */
.prefill-banner {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    border: 1px solid #3498db;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 0 20px 20px 20px;
    text-align: center;
}

.prefill-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #2980b9;
    font-weight: 500;
}

.prefill-content i {
    font-size: 18px;
    color: #27ae60;
}

.error-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #f87171;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 0 20px 20px 20px;
    text-align: center;
}

.error-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #dc2626;
    font-weight: 500;
}

.error-content i {
    font-size: 18px;
    color: #dc2626;
}

/* Contextual Message Styling */
.context-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #0284c7;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
    text-align: left;
}

.context-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #0369a1;
    font-weight: 500;
    line-height: 1.5;
}

.context-content i {
    font-size: 18px;
    color: #0284c7;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-input.prefilled {
    background-color: #f0f8ff;
    border-color: #3498db;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.1);
}

.form-input.prefilled:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .prefill-banner,
    .error-banner {
        margin: 0 10px 15px 10px;
        padding: 12px 16px;
    }
    
    .prefill-content,
    .error-content {
        font-size: 14px;
        gap: 8px;
    }
    
    .prefill-content i,
    .error-content i {
        font-size: 16px;
    }
}

/* ==========================================================================
   Confirmation Styles
   ========================================================================== */

/* Main confirmation section styles */
.confirmation-section {
    margin: 2rem 0;
}

.confirmation-section-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.confirmation-banner-main {
    background: #fff;
    padding: 0rem 1rem 1rem 1rem;
    text-align: center;
}

.confirmation-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.confirmation-icon-large {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 0.5rem;
}

.confirmation-message-centered h2 {
    margin: 0 0 1rem 0;
    color: var(--header-color);
    font-size: var(--header-font-size);
    font-family: var(--header-font);
}

.confirmation-message-centered p {
    margin: 0.75rem 0;
    color: var(--body-font-color);
   font-size: var(--body-font-size);
    font-family: var(--primary-font);
}

.confirmation-actions-centered {
    margin-top: 1.5rem;
}

.request-id {
    opacity: 0.8;
    font-size: var(--body-font-size) !important;
    margin-top: 1rem !important;
}

/* Auto-logout notice */
.auto-logout-notice {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3b82f6;
    border-radius: var(--radius, 8px);
    padding: 1rem;
    margin: 1rem 0;
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auto-logout-notice i {
    font-size: 1.2rem;
}

/* Responsive confirmation styles */
@media (max-width: 768px) {
    .confirmation-section-main {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .confirmation-banner-main {
        padding: 2rem 1.5rem;
    }
    
    .confirmation-icon-large {
        font-size: 3rem;
    }
    
    .confirmation-message-centered h2 {
        font-size: 1.75rem;
    }
    
    .confirmation-message-centered p {
        font-size: 1.1rem;
    }
    
    .confirmation-content {
        flex-direction: column;
        text-align: center;
    }
    
    .confirmation-icon {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Success Banner Styles
   ========================================================================== */

.success-banner {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #22c55e;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0;
    text-align: center;
}

.success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #15803d;
    font-weight: 500;
}

.success-content i {
    font-size: 18px;
    color: #22c55e;
}

/* Email Address Styling - Handle Long Emails */
#email-address,
.registry-info-value[id="email-address"] {
    display: block;
    max-width: 100%;
    word-break: break-all; /* Break long emails at any character */
    overflow-wrap: break-word; /* Modern browsers */
    hyphens: none; /* Don't add hyphens to emails */
    /* Alternative approach with ellipsis (uncomment if preferred):
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    */
}

/* For very long emails on mobile */
@media (max-width: 480px) {
    #email-address,
    .registry-info-value[id="email-address"] {
        font-size: 14px; /* Slightly smaller on mobile */
        line-height: 1.3;
    }
}


/* Toggle Switch Styling for FIN Request Checkbox - Subtle Version */
.fin-check.switch-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: var(--body-font-size);
    user-select: none;
    padding-left: 60px; /* Space for the toggle switch */
    margin-bottom: 1rem;
}

.fin-check.switch-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Toggle switch background - minimal styling */
.fin-check.switch-check::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 26px;
    background: #e5e7eb;
    border-radius: 26px;
    transition: background-color 0.2s ease;
    border: 1px solid #d1d5db;
}

/* Toggle switch circle/handle - minimal styling */
.fin-check.switch-check::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    border: 1px solid #d1d5db;
}

/* Checked state - background */
.fin-check.switch-check:has(input[type="checkbox"]:checked)::before,
.fin-check.switch-check input[type="checkbox"]:checked + *::before {
    background: var(--primary-color); /* MUFG red */
    border-color: var(--primary-color);
}

/* For browsers that don't support :has(), use JavaScript fallback */
.fin-check.switch-check.checked::before {
    background: var(--primary-color); /* MUFG red */
    border-color: var(--primary-color);
}

/* Checked state - handle moves right */
.fin-check.switch-check:has(input[type="checkbox"]:checked)::after,
.fin-check.switch-check input[type="checkbox"]:checked + *::after {
    transform: translateY(-50%) translateX(24px);
}

/* For browsers that don't support :has(), use JavaScript fallback */
.fin-check.switch-check.checked::after {
    transform: translateY(-50%) translateX(24px);
}

/* Very subtle hover effect - just lighten slightly */
.fin-check.switch-check:hover::before {
    background: #f3f4f6;
}

.fin-check.switch-check:hover.checked::before,
.fin-check.switch-check:hover:has(input[type="checkbox"]:checked)::before {
    filter: brightness(1.05);
}

/* Minimal focus state for accessibility - very subtle */
.fin-check.switch-check:focus-within::before {
    box-shadow: 0 0 0 1px rgba(230, 0, 0, 0.3);
}

/* Disabled state */
.fin-check.switch-check:has(input[type="checkbox"]:disabled),
.fin-check.switch-check.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.fin-check.switch-check:has(input[type="checkbox"]:disabled)::before,
.fin-check.switch-check.disabled::before {
    background: #f9fafb;
    border-color: #e5e7eb;
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
    .fin-check.switch-check {
        padding-left: 55px;
        font-size: 15px;
    }
    
    .fin-check.switch-check::before {
        width: 45px;
        height: 24px;
    }
    
    .fin-check.switch-check::after {
        width: 18px;
        height: 18px;
    }
    
    .fin-check.switch-check:has(input[type="checkbox"]:checked)::after,
    .fin-check.switch-check.checked::after {
        transform: translateY(-50%) translateX(21px);
    }
}
