/* =============================================
   Immigration NZ - Visa Verification Styles
   Matches the official NZ Immigration design
   ============================================= */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: 62.5% / 1.5em verdana, geneva, sans-serif;
    color: #333;
    background: #e6e6e6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: #2874a6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =============================================
   HEADER
   ============================================= */
.main-header {
    background: #0b99cb;
    padding: 0;
    position: relative;
    width: 100%;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15),
        0 12px 30px rgba(0, 0, 0, 0.2);
}

.header-inner {
    width: 770px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 10px 20px;
}

.logo-section {
    display: flex;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.fern-logo {
    width: 70px;
    height: 85px;
    display: block;
    margin: 0 auto 5px;
}

.logo-img {}

.logo-text {
    display: block;
    text-align: center;
}

.logo-main {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
}

.logo-sub {
    color: #ffffff;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    display: block;
    margin-top: 1px;
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.contact-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

/* =============================================
   BREADCRUMB BAR
   ============================================= */
.breadcrumb-bar {
    background: #ffffff;
    border-bottom: 0.5px solid #bbbaba;
    padding: 7px 0;
    font-size: 12px;
}

.breadcrumb-inner {
    width: 770px;
    margin: 0 auto;
    padding: 0 20px;
    color: #555;
}

.breadcrumb-inner a {
    color: rgb(77, 77, 77);
    text-decoration: none;
    font-size: 12px;
}

.breadcrumb-link {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    color: #333;
}

.breadcrumb-inner a:hover {
    text-decoration: underline;
}

.home-icon {
    font-size: 13px;
    margin-right: 3px;
}

.home-icon img {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* =============================================
   PAGE WRAPPER (Gray Background)
   ============================================= */
.page-wrapper {
    width: 770px;
    margin: 0 auto;
    background: #cccccc;
}

/* =============================================
   CONTENT LAYOUT
   ============================================= */
.content-wrapper {
    width: 770px;
    margin: 0 auto;
    background: #fff;
    display: flex;
    min-height: 500px;
    box-shadow:
        -10px 0 20px -8px rgba(0, 0, 0, 0.3),
        10px 0 20px -8px rgba(0, 0, 0, 0.3);
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
    width: 180px;
    min-width: 180px;
    background: #e5f5fa;
    padding: 15px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08), 5px 0 20px rgba(0, 0, 0, 0.08);
}

.sidebar-title {
    color: rgb(0, 153, 204);
    font-size: 1.1em;
    font-weight: bold;
    padding-bottom: 5px;
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 8px;
}

.sidebar-nav li a {
    color: #666666;
    text-decoration: none;
    font-size: 12px;
    display: block;

}

.sidebar-nav li a::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url('../images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 5px;
}

.sidebar-nav li a:hover {
    text-decoration: underline;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    box-shadow:
        -10px 0 20px -8px rgba(0, 0, 0, 0.3),
        10px 0 20px -8px rgba(0, 0, 0, 0.3);
}

.page-content {
    margin: 10px 0.5em 90px 0px;
}

/* Info Bar */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;

    font-size: 12px;
}

.info-box {
    border: 1px dotted #cccccc;
    padding: 8px 20px;

    border-width: 0px 1px 1px;
    border-right-style: dashed;
    border-bottom-style: dashed;
    border-left-style: dashed;
    border-right-color: rgb(204, 204, 204);
    border-bottom-color: rgb(204, 204, 204);
    border-left-color: rgb(204, 204, 204);
    margin: 0px 1em 0px 0.75em;
    padding: 1em 20px;
}

.info-label {
    color: #444444;
    margin-right: 5px;
}

.info-value {
    color: #111111;
    font-weight: bold;
}

.info-right {
    text-align: right;
}

.logout-link {
    color: #2874a6;
    font-size: 12px;
    margin-left: 10px;
}

/* Page Title */
h1.page-title {
    color: rgb(0, 153, 204);
    font: 2em / 28px verdana, geneva, sans-serif;
    padding: 10px 20px 25px;
}

/* Content Text */
.content-text {
    padding: 5px 15px;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
}

.content-text p {
    margin-bottom: 10px;
}

/* Cant find link */
.cant-find {
    float: right;
    margin-right: 15px;
    margin-top: 5px;
}

/* =============================================
   ENQUIRY FORM
   ============================================= */
.enquiry-form {
    padding: 10px 15px 30px;
    clear: both;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
}

.form-table tr {
    vertical-align: middle;
}

.form-table td {
    padding: 5px 0;
}

.form-table .label-cell {
    width: 150px;
    text-align: left;
    padding-right: 10px;
    font-size: 12px;
    color: rgb(51, 51, 51);
    white-space: nowrap;
    padding: 0.2em 0px 0.2em 2em;
}

.required-star {
    color: #cc0000;
    margin-left: 2px;
}

.form-table input[type="text"],
.form-table input[type="date"],
.form-table select {
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #888;
    background: #fff;
    font-family: inherit;
}

.form-table input[type="date"]::-webkit-inner-spin-button,
.form-table input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 1;
}

.form-table input[type="date"] {
    color: #333;
}

.form-table input[type="text"] {
    width: 200px;
}

.form-table input[type="date"] {
    width: 140px;
    color: transparent;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

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

.form-table input[type="date"]::-moz-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.form-table input[type="date"]:valid {
    color: #333;
}

.form-table input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

.form-table select {
    width: 200px;
}

.date-hint {
    display: none;
}

/* Consent Checkbox */
.consent-row {
    padding: 15px 0 5px;
}

.consent-row label {
    font-size: 12px;
    cursor: pointer;
}

.consent-row input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

/* Check Visa Button */
.btn-check-visa {
    background: #0b99cb;
    color: #fff;
    border: 1px solid #0990b3;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    font-family: inherit;
}

.btn-check-visa:hover {
    background: #0990b3;
}

/* =============================================
   ERROR & SUCCESS MESSAGES
   ============================================= */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    margin: 10px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 13px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    margin: 10px 15px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    font-size: 13px;
}

/* =============================================
     RESULT PAGE
     ============================================= */
.result-section {
    padding: 10px 20px;
}

.result-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 20px 0 10px;
    color: #333;
}

.result-intro {
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.result-intro p {
    margin-bottom: 8px;
}

/* Result Details Table */
.result-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 5px 0 15px;
}

.result-details-table tr {
    line-height: 1.8;
}

.result-details-table td {
    padding: 2px 12px;
    font-size: 1.1em;
    vertical-align: top;
}

.result-details-table .detail-label {
    /* font-weight: normal; */
    font-size: 1.1em;
    color: rgb(51, 51, 51);
    /* padding: 0.2em 0px 0.2em 2em; */
    /* width: 12em; */
}

.visa-conditions-row {
    font-size: 1.1em;
    color: rgb(51, 51, 51);
}

.result-details-table .detail-value {
    color: rgb(51, 102, 153);
    font-weight: normal;
    font-size: 1.1em;
}

.visa-conditions-row p:last-child {
    color: #2874a6;
    line-height: 1.2;
}



.visa-conditions {
    display: block;
    margin-top: 15px;
}

/* Conditions Section */
.conditions-section {
    margin: 15px 0 10px;
}

.conditions-section h3 {
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 8px;
    color: #333;
}

.conditions-text {
    font-size: 12px;
    line-height: 1.7;
    color: #2874a6;
    margin: 0;
    padding: 0;
}

/* Enquiry Info */
.enquiry-info-table {
    width: 50%;
    border-collapse: collapse;
    margin: 10px 0;
}

.enquiry-info-table td {
    padding: 4px 8px;
    font-size: 12px;
    border-bottom: 1px solid #e8e8e8;
}

.enquiry-info-table .detail-label {
    font-weight: bold;
    width: 40%;
    background: #fafafa;
}

.enquiry-info-table .detail-value {
    color: #2874a6;
}

/* Warning */
.warning-section {
    margin: 15px 0;
    font-size: 11px;
    line-height: 1.6;
    color: #444;

}

.warning-section strong {
    color: #333;
    font-weight: 600;
}

/* Download Button */
.btn-download {
    background: #0b99cb;
    color: #fff;
    border: 1px solid #0990b3;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin: 10px 0;
    font-family: inherit;
}

.btn-download:hover {
    background: #0990b3;
    color: #fff;
    text-decoration: none;
}

/* Questions Link */
.questions-link {
    display: block;
    margin: 10px 0 20px;
    font-size: 13px;
}

/* =============================================
   FOOTER
   ============================================= */
.main-footer {
    width: 770px;
    margin: 0 auto;
    background: #E5E5E5;
    padding: 10px 16px;
    text-align: left;
    border: 1px solid;
    border-color: rgb(187, 187, 187);
    box-sizing: border-box;
}

.main-footer a {
    color: #333;
    text-decoration: none;
    font-size: 11px;
}

.main-footer a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: #999;
    margin: 0 8px;
    font-size: 11px;
}

.main-footer a {
    color: #333;
    text-decoration: none;
    font-size: 11px;
}

.main-footer a:hover {
    text-decoration: underline;
}

.footer-sep {
    color: #999;
    margin: 0 8px;
    font-size: 11px;
}

/* =============================================
   RESPONSIVE (Basic)
   ============================================= */
@media (max-width: 768px) {
    .main-header {
        width: 100%;
        overflow: hidden;
    }

    .header-inner {
        width: 100%;
        padding: 10px 15px;
        flex-wrap: wrap;
    }

    .breadcrumb-bar {
        width: 100%;
        overflow: hidden;
    }

    .breadcrumb-inner {
        width: 100%;
        padding: 7px 15px;
    }

    .logo-section {
        flex: 1;
        min-width: 0;
    }

    .logo-img {
        max-width: 100%;
        height: auto;
        max-height: 60px;
        width: auto;
    }

    .header-right {
        flex-shrink: 0;
    }

    .page-wrapper {
        width: 100%;
        padding: 10px 0;
    }

    .content-wrapper {
        width: 100%;
        flex-direction: column;
        box-shadow: -10px 0 25px rgba(0, 0, 0, 0.35),
            10px 0 25px rgba(0, 0, 0, 0.35);
    }

    .main-footer {
        width: 100%;
    }

    .sidebar {
        width: 100%;
        min-width: unset;
        padding: 15px;
    }

    .info-bar {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .form-table .label-cell {
        text-align: left;
        padding-right: 0;
        padding-bottom: 3px;
    }

    .form-table td {
        display: block;
    }

    .form-table input[type="text"],
    .form-table select {
        width: 100%;
    }

    /* Result Details Table - reduce spacing on mobile */
    .result-details-table {
        margin: 5px 0 10px;
    }

    .result-details-table tr {
        line-height: 1.4;
    }

    .result-details-table td {
        padding: 2px 6px;
        font-size: 1em;
        display: block;
        width: 100%;
    }

    .result-details-table .detail-label {
        font-size: 1em;
        padding-bottom: 2px;
    }

    .result-details-table .detail-value {
        font-size: 1em;
        padding-top: 0;
    }

    .visa-conditions-row {
        font-size: 1em;
    }

    /* Keep table layout same as desktop */
    .result-details-table td {
        display: table-cell;
        width: auto;
    }

    .enquiry-info-table {
        width: 100%;
    }

    /* Conditions Section - reduce spacing on mobile */
    .conditions-section {
        margin: 10px 0 8px;
    }

    .conditions-section h3 {
        font-size: 12px;
        margin: 8px 0 6px;
    }

    .conditions-text {
        font-size: 11px;
        line-height: 1.4;
    }

    .visa-conditions {
        margin-top: 10px;
    }

    .result-section {
        padding: 10px 15px;
    }

    .result-section h3 {
        font-size: 13px;
        margin: 15px 0 8px;
    }

    .warning-section {
        font-size: 10px;
        margin: 10px 0;
    }

    .contact-link {
        margin-top: 0;
    }
}