/* Scoped under .acf-cb-wrapper to prevent theme conflicts */
.acf-cb-wrapper,
.acf-cb-wrapper * {
    box-sizing: border-box;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.acf-cb-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
}

.acf-cb-card {
    background-color: #556132;
    border-radius: 20px;
    padding: 32px 28px;
    color: #ffffff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.acf-cb-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.acf-cb-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d9e0c7;
    margin-bottom: 6px;
}

.acf-cb-wrapper .acf-cb-card h2.acf-cb-title {
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff !important;
    margin: 0 0 8px 0;
}

.acf-cb-subtitle {
    font-size: 14px;
    line-height: 1.45;
    color: #e6ebd8;
    margin: 0;
}

.acf-cb-icon-badge {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e6ebd8;
}

.acf-cb-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.acf-cb-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.acf-cb-field {
    display: flex;
    flex-direction: column;
}

.acf-cb-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e6ebd8;
    margin-bottom: 6px;
}

.acf-cb-optional {
    text-transform: lowercase;
    font-weight: 400;
    opacity: 0.85;
}

.acf-cb-input {
    width: 100%;
    height: 46px;
    background-color: #ffffff;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.acf-cb-input::placeholder {
    color: #6b7280;
}

.acf-cb-input:focus {
    border-color: #d9e0c7;
    box-shadow: 0 0 0 3px rgba(217, 224, 199, 0.25);
}

.acf-cb-select:disabled {
    background-color: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.acf-cb-textarea {
    height: auto;
    min-height: 100px;
    padding: 12px 14px;
    resize: vertical;
}

.acf-cb-helper {
    font-size: 11.5px;
    color: #d9e0c7;
    margin-top: 6px;
}

.acf-cb-consent {
    margin-top: 2px;
}

.acf-cb-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #e6ebd8;
    cursor: pointer;
}

.acf-cb-checkbox {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #f3f1e5;
    cursor: pointer;
    flex-shrink: 0;
}

.acf-cb-checkbox-label a {
    color: #ffffff;
    text-decoration: underline;
}

/* Error Box matching user screenshot */
.acf-cb-error-box {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    line-height: 1.4;
}

.acf-cb-submit-btn {
    width: 100%;
    height: 50px;
    background-color: #f3f1e5;
    color: #1c1917;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.acf-cb-submit-btn:hover {
    background-color: #eae6d3;
}

.acf-cb-submit-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.acf-cb-footer-note {
    text-align: center;
    font-size: 12px;
    color: #e6ebd8;
}

.acf-cb-success-box {
    background-color: #f9fafb;
    border-radius: 10px;
    padding: 16px 18px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .acf-cb-card {
        padding: 24px 18px;
        border-radius: 16px;
    }
    .acf-cb-title {
        font-size: 24px;
    }
    .acf-cb-row-2 {
        grid-template-columns: 1fr;
    }
}
