/**
 * WDMB Forms - Frontend Stylesheet
 * Responsive column system, modern industrial / clean inputs, focus animations
 */

.wdmb-form-container {
    width: 100%;
    margin: 0 auto;
    font-family: inherit;
    box-sizing: border-box;
}

.wdmb-form-container *,
.wdmb-form-container *::before,
.wdmb-form-container *::after {
    box-sizing: border-box;
}

.wdmb-form-grid {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.wdmb-form-field-wrap {
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Column Width Classes (Elementor Pro Style) */
.wdmb-col-100 { width: 100%; }
.wdmb-col-75  { width: 75%; }
.wdmb-col-66  { width: 66.666%; }
.wdmb-col-50  { width: 50%; }
.wdmb-col-33  { width: 33.333%; }
.wdmb-col-25  { width: 25%; }
.wdmb-col-20  { width: 20%; }

@media (max-width: 767px) {
    .wdmb-form-field-wrap {
        width: 100% !important;
    }
}

.wdmb-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: 0.3px;
}

.wdmb-required-mark {
    color: #ce2033;
    margin-left: 2px;
}

.wdmb-input,
.wdmb-select,
.wdmb-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.wdmb-input:focus,
.wdmb-select:focus,
.wdmb-textarea:focus {
    border-color: #ce2033;
    box-shadow: 0 0 0 3px rgba(206, 32, 51, 0.15);
    background-color: #ffffff;
}

.wdmb-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    padding-right: 40px;
    cursor: pointer;
}

.wdmb-textarea {
    resize: vertical;
    min-height: 110px;
}

/* Radio & Checkbox Groups */
.wdmb-choice-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.wdmb-choice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

.wdmb-choice-item input[type="radio"],
.wdmb-choice-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ce2033;
    margin: 0;
    cursor: pointer;
}

/* Acceptance terms */
.wdmb-acceptance-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 6px;
}

.wdmb-acceptance-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ce2033;
    margin-top: 2px;
    cursor: pointer;
}

.wdmb-acceptance-label {
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
    cursor: pointer;
}

/* Submit Button */
.wdmb-form-submit-wrap {
    padding: 10px;
    width: 100%;
}

.wdmb-form-submit-wrap.wdmb-align-left {
    text-align: left;
}

.wdmb-form-submit-wrap.wdmb-align-center {
    text-align: center;
}

.wdmb-form-submit-wrap.wdmb-align-right {
    text-align: right;
}

.wdmb-form-submit-wrap.wdmb-align-justify .wdmb-submit-btn {
    width: 100%;
    display: block;
}

.wdmb-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(135deg, #ce2033 0%, #ee3f76 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(206, 32, 51, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.wdmb-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(206, 32, 51, 0.35);
}

.wdmb-submit-btn:active {
    transform: translateY(0);
}

.wdmb-submit-btn.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.wdmb-submit-btn.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

.wdmb-submit-btn:disabled,
.wdmb-form.is-submitting .wdmb-submit-btn {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner Icon */
.wdmb-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wdmb-spin 0.8s linear infinite;
}

.wdmb-form.is-submitting .wdmb-btn-spinner {
    display: inline-block;
}

@keyframes wdmb-spin {
    to { transform: rotate(360deg); }
}

/* Feedback Response Notices */
.wdmb-form-response {
    padding: 10px;
    width: 100%;
    display: none;
}

.wdmb-form-response.is-active {
    display: block;
}

.wdmb-alert {
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wdmb-alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.wdmb-alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Anti-spam Honeypot */
.wdmb-hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
}
