.advcargo-quote-form * {
    font-family: "Roboto", Arial, sans-serif;
    box-sizing: border-box;
}

.advcargo-quote-form-wrapper {
    width: 100%;
    margin-top: 10px; /* redus de la 30px */
}

.advcargo-quote-form {
    padding: 20px;
    background: var(--advcargo-primary);
    position: relative;
    border-radius: 4px;
}

.advcargo-quote-form input::placeholder {
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 19px;
    color: #6F7FA8 !important;
}

/* ── Success ─────────────────────────────────────────────────────────────────── */

.advcargo-success-inner {
    background: #20506e;
    color: #fff;
    border-radius: 4px;
    text-align: center;
    padding: 32px 20px; /* padding egal sus/jos */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.advcargo-success-inner strong {
    display: block;
    font-size: 16px;
    margin: 0;
}

.advcargo-success-inner p {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
    max-width: 460px;
    line-height: 1.5;
}

#advcargo-new-request-btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s;
}

#advcargo-new-request-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* ── ROW 1 ─────────────────────────────────────────────────────────────────── */

.advcargo-input-container {
    display: flex;
    border-radius: 4px;
    overflow: visible;
}

.advcargo-field-wrapper {
    position: relative;
    background: #f7f7f7;
    flex: 1;
    overflow: hidden;
    border-radius: 0;
}

.advcargo-field-wrapper:nth-child(1) { border-radius: 4px 0 0 4px; flex: 38%; }
.advcargo-field-wrapper:nth-child(2) { flex: 24%; border-left: 1px solid #C6D0EB; border-right: 1px solid #C6D0EB; }
.advcargo-field-wrapper:nth-child(3) { border-radius: 0 4px 4px 0; flex: 38%; }

.advcargo-field-label {
    position: absolute;
    top: 10px;
    left: 13px;
    z-index: 10;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 700;
    font-size: 11px;
    line-height: 14px;
    color: var(--advcargo-font);
    letter-spacing: 0.3px;
    pointer-events: none;
    white-space: nowrap;
}

.advcargo-field-wrapper input {
    height: 70px;
    margin: 0;
    width: 100%;
    outline: 0;
    padding: 26px 14px 6px 12px !important;
    background: #f7f7f7;
    box-shadow: unset;
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    color: #090D2B;
    position: relative;
    z-index: 1;
}

.advcargo-field-wrapper input:hover {
    background: #e9e9e9;
    border-color: #e9e9e9;
}

.advcargo-field-wrapper input:focus {
    background: white;
    border-color: white;
    box-shadow: 0 2px 10px 3px rgb(0 0 0 / 30%);
    outline: none;
    position: relative;
    z-index: 1;
}

.advcargo-field-wrapper:nth-child(1) input:hover { border-radius: 4px 0 0 4px; }
.advcargo-field-wrapper:nth-child(2) input:hover { border-radius: 0; }
.advcargo-field-wrapper:nth-child(3) input:hover { border-radius: 0 4px 4px 0; }

.advcargo-field-wrapper:nth-child(2)::before {
    content: '';
    background: #C6D0EB;
    position: absolute;
    left: -1px;
    width: 1px;
    height: 50px;
    top: 0; bottom: 0;
    margin: auto;
    z-index: 2;
}
.advcargo-field-wrapper:nth-child(2)::after {
    content: '';
    background: #C6D0EB;
    position: absolute;
    right: 0;
    width: 1px;
    height: 50px;
    top: 0; bottom: 0;
    margin: auto;
    z-index: 2;
}

/* Error state */
.advcargo-field-label.advcargo-field-label-error { color: var(--advcargo-error) !important; }

/* ── ROW 2 ─────────────────────────────────────────────────────────────────── */

.advcargo-optional-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.advcargo-dim-wrapper {
    background: #f7f7f7;
    border-radius: 4px;
    padding: 10px 14px 8px;
    flex: 1;
}

.advcargo-commodity-wrapper { flex: 2; }

.advcargo-dim-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--advcargo-font);
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    cursor: default;
}

.advcargo-optional-tag {
    font-size: 9px;
    color: #6F7FA8;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 3px;
}

.advcargo-dim-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #090D2B;
    outline: none;
    padding: 0;
    box-shadow: none;
}

.advcargo-dim-wrapper input::placeholder { color: #6F7FA8; font-size: 16px; }

/* ── ROW 3 ─────────────────────────────────────────────────────────────────── */

.advcargo-checkbox-row {
    display: flex;
    gap: 20px;
    margin-top: 14px;
    margin-bottom: 4px;
}

.advcargo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--advcargo-secondary);
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.advcargo-checkbox-label input[type=checkbox] {
    width: 16px;
    height: 16px;
    accent-color: var(--advcargo-system);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── ROW 4 ─────────────────────────────────────────────────────────────────── */

.advcargo-email-btn-row {
    display: flex;
    margin-top: 18px;
}

.advcargo-email {
    width: 60% !important;
    height: 51px !important;
    background: #F7F7F7 !important;
    border-radius: 4px !important;
    padding: 4px 14px 3px 12px !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #090D2B !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: box-shadow 0.2s;
}

.advcargo-email.error { box-shadow: 0 0 0 1.5px var(--advcargo-error) !important; }

.advcargo-btn-wrapper {
    width: 40%;
    padding-left: 20px;
}

#advcargo-submit-btn {
    background-color: var(--advcargo-system);
    height: 51px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--advcargo-secondary);
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

#advcargo-submit-btn:hover { background-color: var(--advcargo-hover); }

/* ── Google Places dropdown ─────────────────────────────────────────────────── */

.pac-container {
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgb(0 0 0 / 25%) !important;
    border: none !important;
    font-family: "Roboto", Arial, sans-serif !important;
    z-index: 99999 !important;
}
.pac-item { font-size: 13px !important; padding: 6px 12px !important; cursor: pointer !important; line-height: 28px !important; }
.pac-item:hover { background: #f5f5f5 !important; }
.pac-item-query { font-size: 14px !important; color: #090D2B !important; }
.pac-matched { color: var(--advcargo-system) !important; font-weight: 700 !important; }

/* ── Lightpick ──────────────────────────────────────────────────────────────── */
.lightpick__toolbar button { background: var(--advcargo-system); padding: 0; }

/* ── Mobile ─────────────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
    .advcargo-input-container { display: block; background: white; border-radius: 4px; overflow: hidden; }
    .advcargo-field-wrapper:nth-child(1),
    .advcargo-field-wrapper:nth-child(2),
    .advcargo-field-wrapper:nth-child(3) { flex: 100%; width: 100%; border-radius: 0; border: none; }
    .advcargo-field-wrapper:nth-child(2)::before,
    .advcargo-field-wrapper:nth-child(2)::after { display: none; }
    .advcargo-optional-row { flex-wrap: wrap; }
    .advcargo-dim-wrapper { flex: 1 1 calc(50% - 10px); }
    .advcargo-commodity-wrapper { flex: 1 1 100%; }
    .advcargo-checkbox-row { flex-direction: column; gap: 12px; }
    .advcargo-email-btn-row { display: block; }
    .advcargo-email { width: 100% !important; }
    .advcargo-btn-wrapper { width: 100%; padding-left: 0; margin-top: 18px; }
    .advcargo-quote-form { padding: 16px 20px 30px; }
}

@media (max-width: 1366px) {
    input#advcargo-field-date { -webkit-appearance: none; -moz-appearance: none; appearance: none; }
}
