/* AdvCargo Carrier Sign Up Form
   Design: matches Contact Us page (.avdcargo-form-contacts)
   Font: Poppins (loaded by Astra theme)
   Accent: #308e66 (Astra green)
*/

.avdcargo-carrier-wrap {
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

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

.avdcargo-carrier-success-inner {
    background: #EAF4F0;
    border-left: 4px solid #308e66;
    border-radius: 4px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.avdcargo-carrier-success-inner strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

.avdcargo-carrier-success-inner p {
    font-size: 15px;
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* ── Form rows ───────────────────────────────────────────────────────────────── */

.avdcargo-form-contacts {
    width: 100%;
}

.avdcargo-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.avdcargo-form-group {
    display: flex;
    flex-direction: column;
}

.avdcargo-form-empty {
    pointer-events: none;
}

/* ── Labels ──────────────────────────────────────────────────────────────────── */

.avdcargo-form-group > label:not(.avdcargo-upload-label) {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ── Inputs ──────────────────────────────────────────────────────────────────── */

.avdcargo-form-group input[type=text],
.avdcargo-form-group input[type=email],
.avdcargo-form-group input[type=tel] {
    width: 100%;
    height: 50px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    color: #000;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none;
}

.avdcargo-form-group input[type=text]:focus,
.avdcargo-form-group input[type=email]:focus,
.avdcargo-form-group input[type=tel]:focus {
    border-color: #000;
}

.avdcargo-form-group input.ac-field-error {
    border-color: #dc3232;
}

.avdcargo-form-group input::placeholder {
    color: #aaa;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

/* ── Upload section ──────────────────────────────────────────────────────────── */

.avdcargo-upload-section {
    margin-bottom: 20px;
}

.avdcargo-upload-section-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.avdcargo-optional-note {
    font-size: 12px;
    color: #888;
    font-weight: 400;
    margin-left: 6px;
}

.avdcargo-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border: 1px dashed #d0d0d0;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: #555;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    margin-bottom: 0 !important;
    font-weight: 400 !important;
}

.avdcargo-upload-label:hover {
    border-color: #308e66;
    background: #f0faf5;
    color: #308e66;
}

.avdcargo-upload-label.has-file {
    border-color: #308e66;
    border-style: solid;
    background: #f0faf5;
    color: #308e66;
    font-weight: 600 !important;
}

.avdcargo-upload-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.avdcargo-remove-file {
    background: none;
    border: none;
    color: #dc3232;
    font-size: 12px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    padding: 4px 0;
    text-align: left;
    border-radius: 0;
    margin-top: 4px;
    height: auto;
    width: auto;
    line-height: 1;
    display: inline-block;
}

.avdcargo-remove-file:hover {
    color: #a00;
    background: none;
    border: none;
}

.avdcargo-upload-label.drag-over {
    border-color: #308e66;
    background: #e6f5ee;
    color: #308e66;
}

/* ── Error message ───────────────────────────────────────────────────────────── */

.avdcargo-error-msg {
    background: #fff0f0;
    border: 1px solid #f5c1c1;
    color: #a32d2d;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── Submit button — matches Astra theme button ──────────────────────────────── */

#advcargo-carrier-submit-btn {
    display: inline-block;
    background-color: #308e66;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 4px;
}

#advcargo-carrier-submit-btn:hover {
    background-color: #1f6547;
}

#advcargo-carrier-submit-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

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

@media (max-width: 640px) {
    .avdcargo-form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .avdcargo-form-empty { display: none; }
}
