:root {
    --primary-blue: #1848a0;
    --light-bg: #e1ecf7;
    --text-dark: #001f65;
    --border-color: #1848a0;
    --white: #ffffff;
    --error-red: #d32f2f;
    --success-green: #2e7d32;
    --gradient-btn: linear-gradient(180deg, #001f65 0%, #6895fd 100%);
    --fs-h1: 2rem;
    --fs-h2: 1.4rem;
    --fs-body: 1rem;
    --fs-small: 0.85rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    background-color: var(--primary-blue);
    padding: 15px 20px 25px 20px;
    min-height: 140px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
    width: 100%;
}

.logo-img {
    width: auto;
    height: 100px;
    object-fit: contain;
    display: block;
}

.header-text h1 {
    margin: 0;
    font-size: var(--fs-h1);
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.text-tukang {
    color: white;
}

.text-now {
    color: #bfe5ef;
}

.header-text p {
    opacity: 0.9;
    font-size: var(--fs-small);
    margin: 2px 0 0;
}

.signup-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: -15px;
    padding: 0 15px 15px;
    flex: 1;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

.signup-card {
    background: white;
    padding: 1.2rem;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.signup-card h2 {
    color: var(--text-dark);
    font-size: var(--fs-h2);
    margin: 0 0 2px;
    text-align: center;
    font-weight: 800;
}

.subtitle {
    color: #666;
    margin: 0 0 12px;
    font-size: var(--fs-small);
    line-height: 1.3;
    text-align: center;
}

.card-scrollable-content {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding-right: 4px;
    text-align: left;
}

.card-scrollable-content::-webkit-scrollbar {
    width: 4px;
}

.card-scrollable-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

form {
    width: 100%;
}

.input-row,
.phone-input-container {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 10px 15px;
    margin-bottom: 12px;
    gap: 12px;
    background: white;
    width: 100%;
    min-height: 50px;
    position: relative;
}

.input-row input {
    border: none;
    outline: none;
    width: 100%;
    min-width: 0;
    font-size: var(--fs-body);
    font-family: inherit;
    color: var(--text-dark);
    background: transparent;
    padding: 0;
}

.input-row input::placeholder,
.phone-number-box::placeholder {
    color: #666;
    opacity: 1;
}

.input-icon,
.input-row svg.input-icon,
.upload-box svg.input-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    color: var(--primary-blue) !important;
    stroke: currentColor !important;
    fill: none !important;
    flex: 0 0 22px !important;
    display: block !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
}

.eye-icon,
#togglePassword {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    color: #999 !important;
    stroke: currentColor !important;
    fill: none !important;
    flex: 0 0 22px !important;
    cursor: pointer;
    display: block !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
}

.eye-icon:hover,
#togglePassword:hover {
    color: var(--primary-blue) !important;
}

.signup-card svg:not(.leaflet-zoom-animated):not(.leaflet-attribution-flag) {
    max-width: 24px;
    max-height: 24px;
}

.leaflet-container svg,
.leaflet-pane svg,
.leaflet-overlay-pane svg,
.leaflet-marker-pane img,
.leaflet-tile-pane img {
    max-width: none !important;
    max-height: none !important;
}

.phone-input-container {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

.country-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1.5px solid #ccc;
    padding: 0 12px;
    min-height: 50px;
    flex: 0 0 105px;
    color: var(--text-dark);
    font-weight: 800;
    background: white;
}

.flag-icon {
    width: 24px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.country-code-text {
    font-weight: 800;
    color: var(--text-dark);
}

.phone-number-box {
    border: none;
    outline: none;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    font-size: var(--fs-body);
    background: transparent;
    font-family: inherit;
    color: var(--text-dark);
    padding: 0 15px;
}

.phone-error-text {
    display: none;
    color: var(--error-red);
    font-size: 0.8rem;
    text-align: left;
    margin-top: -8px;
    margin-bottom: 12px;
    margin-left: 10px;
    font-weight: bold;
}

.password-requirements {
    text-align: left;
    margin: -4px 0 12px 15px;
    font-size: 0.8rem;
}

.requirements-container {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: left;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    font-size: 0.8rem;
}

.requirement.invalid {
    color: var(--error-red);
}

.requirement.valid {
    color: var(--success-green);
    font-weight: bold;
}

.map-header-container {
    text-align: center;
    margin: 8px 0 10px;
}

.map-header-container p {
    text-align: center;
}

.map-instruction-note {
    margin: 8px 0 0;
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.35;
}

#map {
    height: 250px !important;
    width: 100% !important;
    border-radius: 15px !important;
    margin-bottom: 12px !important;
    border: 2px solid var(--border-color) !important;
    z-index: 1 !important;
    overflow: hidden;
}

.leaflet-control-geocoder {
    max-width: calc(100% - 20px) !important;
}

.leaflet-control-geocoder-form input {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.9rem !important;
}

.leaflet-control-zoom a {
    width: 30px !important;
    height: 30px !important;
    line-height: 30px !important;
}

.leaflet-control-attribution {
    font-size: 10px !important;
}

.address-fields-title {
    text-align: left;
    font-weight: bold;
    margin: 15px 0 8px;
    font-size: var(--fs-small);
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-grid {
    display: flex;
    gap: 10px;
    width: 100%;
}

.address-grid input {
    flex: 1;
    min-width: 0;
    height: 45px;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 0 15px;
    font-size: var(--fs-body);
    background-color: #fff;
    color: var(--text-dark);
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}

.input-group-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.input-group-search input {
    flex: 1;
    height: 45px;
    border: 2px solid var(--primary-blue);
    border-radius: 12px;
    padding: 0 12px;
    font-family: inherit;
    outline: none;
    font-size: var(--fs-body);
    min-width: 0;
}

.input-group-search button {
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0 14px;
    font-weight: bold;
    cursor: pointer;
    font-size: var(--fs-small);
    font-family: inherit;
}

.upload-box {
    cursor: pointer;
    border: 2px dashed var(--border-color);
    background: #f8fbff;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    text-align: left;
}

.upload-box span {
    font-size: var(--fs-small);
    line-height: 1.35;
}

.blue-text {
    color: var(--primary-blue);
    font-weight: bold;
}

.hidden-file-input {
    display: none !important;
}

.file-list-container {
    margin: -5px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-size: var(--fs-small);
}

.file-item {
    background: #f1f4f9;
    padding: 8px 12px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #d0dbe9;
}

.profile-upload-section {
    margin-bottom: 12px;
}

.profile-preview {
    display: flex;
    justify-content: center;
}

.preview-container,
.image-preview-list,
.file-preview-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.preview-wrapper,
.image-preview-card {
    position: relative;
    width: 75px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f8fafc;
}

.preview-wrapper img,
.image-preview-card img,
.profile-preview img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.remove-btn,
.remove-image-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.7);
    color: white;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
}

.terms-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
    font-size: 0.9rem;
    text-align: left;
    color: #4a4a4a;
}

.terms-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-blue);
    cursor: pointer;
    flex-shrink: 0;
}

.terms-link {
    color: var(--primary-blue);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

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

.btn-signup,
#closeModal,
#statusOkBtn {
    background: var(--gradient-btn);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 5px;
    font-size: var(--fs-body);
    transition: transform 0.2s;
    font-family: inherit;
}

.btn-signup:active,
#closeModal:active,
#statusOkBtn:active {
    transform: scale(0.98);
}

.btn-vendor {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary-blue);
    border-radius: 30px;
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background 0.2s;
    font-size: var(--fs-body);
}

.btn-vendor:hover {
    background: #f0f7ff;
}

.login-link {
    margin-top: 15px;
    padding-top: 10px;
    font-size: var(--fs-small);
    border-top: 1px solid #eee;
    text-align: center;
}

.login-link a {
    color: var(--primary-blue);
    font-weight: 800;
    text-decoration: none;
}

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

.divider {
    margin: 12px 0;
    display: flex;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
    margin: 0 15px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 25px;
    padding: 30px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
    box-sizing: border-box;
}

.modal-body {
    text-align: left;
    font-size: 0.95rem;
    margin: 20px 0;
    line-height: 1.6;
}

.terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-list li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.muted-text {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 4px;
    font-style: italic;
}

.warning-text {
    display: block;
    color: var(--error-red);
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: bold;
}

.success-text {
    display: block;
    color: var(--success-green);
    font-size: 0.85rem;
    margin-top: 4px;
    font-weight: bold;
}

.status-card {
    background: white;
    width: 100%;
    max-width: 350px;
    padding: 35px 25px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.status-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 35px;
    color: white;
    font-weight: bold;
}

.status-success .status-icon-circle {
    background-color: var(--success-green);
}

.status-fail .status-icon-circle {
    background-color: var(--error-red);
}

#statusTitle {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

#statusMessage {
    margin: 12px 0 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-card {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 14px 20px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    max-width: 340px;
    width: calc(100% - 40px);
    transform: translateY(-40px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-card.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-left {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2.5px solid rgba(0, 0, 0, 0.05);
    border-top: 2.5px solid #000000;
    border-radius: 50%;
    animation: toastSpin 0.8s linear infinite;
    display: none;
}

@keyframes toastSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.toast-icon-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.85rem;
    font-weight: bold;
}

.toast-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.toast-content-wrapper h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111111;
}

.toast-content-wrapper p {
    margin: 0;
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .header {
        padding: 25px 20px 35px 20px;
        min-height: 160px;
    }

    .header-content {
        flex-direction: row;
        text-align: left;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    :root {
        --fs-h1: 1.6rem;
        --fs-h2: 1.25rem;
    }

    .header {
        padding: 15px 20px 25px 20px;
        min-height: 140px;
    }

    .signup-card {
        max-width: 420px;
        border-radius: 30px;
        padding: 1.2rem;
    }

    .address-grid {
        flex-direction: column;
        gap: 10px;
    }

    .country-code-box {
        flex-basis: 95px;
        min-width: 95px;
    }
}