﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 300;
    font-size: 12pt;
    background: #0075c8;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

b, strong, .semibold {
    font-weight: 600 !important;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 40px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 120px);
    max-width: 1280px;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-right {
    justify-content: flex-end;
}

.logo-badge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.postcode-lookup-container {
    position: relative;
    width: 100%;
}

.postcode-lookup-container input {
    width: 100%;
    padding-right: 45px !important;
}

.lookup-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: #6c757d;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
}

.lookup-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.lookup-button:active {
    background: #dee2e6;
    transform: translateY(-50%) translateY(1px);
}

.lookup-button:disabled {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

.lookup-status {
    font-size: 10pt;
    margin-top: 5px;
    padding: 6px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-row {
    display: none;
}

.status-row.show {
    display: flex;
}


.lookup-status.geocoding-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lookup-status.geocoding-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lookup-status.geocoding-loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.logo-badge {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: transform 0.2s ease;
    display: block;
    margin: 0;
    padding: 0;
}

.logo-badge:hover {
    transform: scale(1.05);
}

.container {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    background-image: url('/static/img/background_grid.png');
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain;
    background-size: 640px auto;
    overflow: hidden;
}

.left-panel {
    padding: 180px 80px 60px 80px;
    width: 100%;
    z-index: 2;
    position: relative;
}

a.logo-text {
    font-size: 32px;
    font-weight: 300;
    color: #0075c8;
    letter-spacing: -0.5px;
    text-decoration: none;
}

a.logo-text:hover {
    color: #0075c8;
    text-decoration: none;
}

a.logo-text:visited {
    color: #0075c8;
}

.content {
    color: white;
}

.welcome-text {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
}

.description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.95;
}

.info-required {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.requirements-list {
    list-style: none;
    margin-bottom: 30px;
}

    .requirements-list li {
        font-size: 16px;
        margin-bottom: 8px;
        padding-left: 20px;
        position: relative;
        opacity: 0.95;
    }

        .requirements-list li::before {
            content: "•";
            position: absolute;
            left: 0;
            color: white;
            font-size: 20px;
        }

.additional-info {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.begin-button {
    background: #333e48;
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 40px auto;
    display: block;
}

    .begin-button:hover {
        background: #2a3137;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

.submit-button {
    background: #333e48;
    color: white;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    margin: 40px auto;
}

    .submit-button:hover {
        background: #2a3137;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

.button-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    align-items: center;
}

.button-container .submit-button,
.button-container .begin-button {
    padding: 15px 60px;
    font-size: 18px;
    margin: 0;
}

.forgot-password-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


.field-validation-error {
    color: #d32f2f;
    background-color: rgba(255, 220, 220, 1.0);
    border: 2px solid #ffffff;
    border-left: 4px solid #ff0000;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

    .field-validation-error:empty {
        display: none;
    }

    .field-validation-error:not(:empty) {
        display: block;
    }

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    max-width: 700px;
}

    .form-row .field-validation-error {
        display: block;
        margin-top: 5px;
    }

.input-container {
    width: 100%;
}

    .input-container input[type="text"],
    .input-container input[type="password"],
    .input-container input[type="tel"],
    .input-container input[type="url"],
    .input-container input[type="email"] {
        width: 100%;
    }

    .input-container .field-validation-error:empty {
        display: none;
    }

    .input-container .field-validation-error:not(:empty) {
        display: block;
    }

    .input-container .field-validation-error {
        display: block;
        margin-top: 5px;
    }

label {
    font-size: 18px;
    flex: 0 0 200px;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="url"],
input[type="email"] {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
}

.verification-code {
    text-align: center;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
}

input[type="checkbox"], input[type="radio"] {
    margin-right: 10px;
    flex-shrink: 0;
}

input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

input[type="radio"]:checked {
    background-color: #28a745;
    border-color: #28a745;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
}

.radio-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 0;
    cursor: pointer;
}

.radio-wrapper input[type="radio"] {
    margin-right: 0;
    margin-top: 0.4em;
    flex-shrink: 0;
}

.radio-wrapper .radio-text {
    flex: 1;
    line-height: 1.5;
}


.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-right: 0;
    flex-shrink: 0;
}

.checkbox-wrapper .checkbox-text {
    flex: 1;
    line-height: 1.5;
}

.trusted-device-status {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.forget-device-link {
    text-decoration: underline;
}

.form-row label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    flex-wrap: nowrap;
}


a {
  color: #ffffff; 
  font-weight: bold; 
}

a:hover {
  text-decoration: underline; 
  color: #e0e0e0;
}

a:visited {
  color: #ffffff;
}

.creditor-section {
    margin-bottom: 45px;
}

.creditor-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.src-logo {
    width: 64px;
    height: auto;
    flex-shrink: 0;
}

.creditor-text {
    font-size: 16px;
    line-height: 1.4;
    color: white;
}

.terms-container {
  height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 20px;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 14px;
}

.terms-container h3 {
  font-size: 1.1em;
  margin: 1.5em 0 0.5em 0;
  color: #111;
}

.terms-container p {
  padding: 0;
  margin: 0.6em 0;
}

.terms-container ul {
  list-style-type: disc;
  padding-left: 1.2em;
  margin: 0.4em 0;
}

.terms-container li {
  padding-left: 0;
  margin: 0.4em 0;
}

.terms-container a {
  color: #1a6dd4;
}

@media (max-width: 768px) {
    .header {
        padding: 10px 20px;
        top: 15px;
        width: calc(100% - 40px);
    }

    .logo-badge {
        width: 50px;
        height: 50px;
    }

    a.logo-text {
        font-size: 24px;
    }

    .container {
        background-position: center top;
        background-image: url('/static/img/background_grid.png');
        background-size: 100% auto;
        padding-bottom: 250px;
    }

    .left-panel {
        padding: 120px 40px 60px 20px;
        max-width: 1024px;
        width: 100%;
        z-index: 2;
        position: relative;
    }

    body {
        font-size: 14pt;
    }

    .welcome-text {
        font-size: 22px;
    }

    .description,
    .info-required,
    .requirements-list li,
    .additional-info {
        font-size: 16px;
        line-height: 1.4;
    }

    .begin-button,
    .submit-button {
        padding: 16px 24px;
        font-size: 18px;
        width: 45%;
        max-width: 350px;
        margin-top: 30px;
        margin-bottom: 30px;
    }

    label {
        font-size: 16px;
        display: block;
    }

    input[type="text"],
    input[type="password"],
    input[type="tel"],
    input[type="email"] {
        padding: 12px;
        font-size: 16px;
        height: 48px;
    }

    input[type="checkbox"], input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    input[type="radio"] {
        width: 20px;
        height: 20px;
        border: 2px solid #ffffff;
    }

    input[type="radio"]:checked {
        background-color: #28a745;
        border-color: #28a745;
    }

    .radio-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        min-height: 48px;
        padding: 12px 0;
    }

    .radio-wrapper input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 0;
        margin-top: 0.2em;
        flex-shrink: 0;
    }

    .radio-wrapper .radio-text {
        flex: 1;
        line-height: 1.4;
        font-size: 16px;
    }

    .checkbox-wrapper {
        flex-direction: row;
        gap: 10px;
    }

    .checkbox-wrapper input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 0;
        margin-top: 0;
        flex-shrink: 0;
    }

    .checkbox-wrapper .checkbox-text {
        flex: 1;
        line-height: 1.4;
        font-size: 16px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 25px;
    }

    .form-row label {
        flex: none;
    }

    .form-row input {
        width: 100%;
    }

    .field-validation-error {
        font-size: 14px;
        padding: 12px;
        margin: 10px 0;
    }

    .TermsAndConditionsScrollBox {
        height: 350px;
        padding: 15px;
        font-size: 14px;
        line-height: 1.4;
    }

    .button-container {
        flex-wrap: wrap;
    }

    .button-container .submit-button,
    .button-container .begin-button {
        padding: 16px 24px;
        font-size: 18px;
        flex: 1;
        max-width: none;
    }

    .forgot-password-container {
        margin-top: 20px;
        text-align: center;
        width: 100%;
        order: 1;
    }

    .postcode-lookup-container {
        position: relative;
        display: block;
    }
    
    .postcode-lookup-container input {
        height: 48px !important;
        padding: 12px 50px 12px 12px !important;
        box-sizing: border-box;
        width: 100%;
    }
    
    .postcode-lookup-container .lookup-button {
        position: absolute;
        right: 8px;
        top: 24px;
        height: 32px;
        width: 32px;
        padding: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        color: #6c757d;
        transition: all 0.2s;
        cursor: pointer;
    }
    
    .postcode-lookup-container .lookup-button:hover {
        background: #e9ecef;
        border-color: #adb5bd;
        color: #495057;
    }
    
    .postcode-lookup-container .lookup-button:active {
        background: #dee2e6;
        transform: translateY(1px);
    }
    
    .postcode-lookup-container .lookup-button:disabled {
        background: #f8f9fa;
        border-color: #dee2e6;
        color: #adb5bd;
        cursor: not-allowed;
    }
    
    .postcode-lookup-container .lookup-button svg {
        width: 18px;
        height: 18px;
    }
    
    .postcode-lookup-container input::placeholder {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    a.logo-text {
        font-size: 18px;
    }
    
    .logo-badge {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 320px) {
    a.logo-text {
        font-size: 14px;
    }
    
    .header {
        padding: 8px 15px;
    }
    
    .logo-badge {
        width: 32px;
        height: 32px;
    }
}

.summary-card {
    background: #ffffff;
    color: #333;
    border-radius: 8px;
    padding: 32px;
    margin: 30px 0;
    max-width: 900px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    line-height: 1.6;
}

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e5e5;
}

.summary-card-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.copy-button {
    background: #0075c8;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
    white-space: nowrap;
}

.copy-button:hover {
    background: #005a9c;
}

.copy-button.copied {
    background: #28a745;
}

.summary-id-highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    background: #f4f8fb;
    border: 1px solid #d6e4f0;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.summary-id-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-id-value {
    font-family: 'Courier New', monospace;
    font-size: 20px;
    font-weight: 600;
    color: #0075c8;
    flex: 1;
    word-break: break-all;
}

.summary-section {
    margin-bottom: 24px;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h3 {
    font-size: 17px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e5e5;
}

.summary-row {
    display: flex;
    align-items: baseline;
    padding: 6px 0;
    font-size: 16px;
}

.summary-label {
    flex: 0 0 200px;
    color: #666;
    font-weight: 500;
}

.summary-value {
    flex: 1;
    color: #222;
    word-break: break-word;
}

@media (max-width: 768px) {
    .summary-card {
        padding: 20px;
    }
    .summary-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .copy-button {
        width: 100%;
    }
    .summary-id-value {
        font-size: 18px;
    }
    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px dashed #eee;
    }
    .summary-row:last-child {
        border-bottom: none;
    }
    .summary-label {
        flex: none;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }
}

@media print {
    body {
        background: white !important;
    }
    .container {
        background: white !important;
        background-image: none !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    .left-panel {
        padding: 0 !important;
    }
    .header {
        display: none !important;
    }
    .content > *:not(#summary-card) {
        display: none !important;
    }
    #summary-card {
        display: block !important;
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        line-height: 1.6;
    }
    .copy-button {
        display: none !important;
    }
    .summary-card-header {
        border-bottom: 2px solid #333 !important;
        padding-bottom: 8px !important;
        margin-bottom: 16px !important;
    }
    .summary-card-header h2 {
        font-size: 20px !important;
    }
    .summary-id-highlight {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        margin-bottom: 16px !important;
        gap: 8px !important;
    }
    .summary-id-value {
        color: black !important;
        font-size: 16px !important;
    }
    .summary-section h3 {
        font-size: 14px !important;
        color: black !important;
    }
    .summary-row {
        font-size: 12pt !important;
        padding: 2px 0 !important;
    }
    .summary-label {
        color: #444 !important;
    }
    .summary-value {
        color: black !important;
    }
}


