.kps-subscribe-box {
    /* Clean container by default */
    width: 100%;
    box-sizing: border-box;
}
.kps-form-header {
    margin-bottom: 15px;
}
.kps-form-title {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}
.kps-form-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}
.kps-field-group {
    margin-bottom: 12px;
}
.kps-field-group label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
}
.kps-input-email, 
.kps-input-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; /* Important */
}
.kps-btn-submit {
    background-color: #2271b1;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}
.kps-btn-submit:hover {
    background-color: #135e96;
}

/* LAYOUT: INLINE (PARALLEL) */
.kps-layout-inline .kps-inline-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end; /* Align bottom to match inputs with labels */
}

/* Force heights to match in inline mode */
.kps-layout-inline .kps-input-email,
.kps-layout-inline .kps-btn-submit {
    height: 42px;
    box-sizing: border-box;
}

.kps-layout-inline .kps-field-group {
    flex: 1; /* Take remaining space */
    margin-bottom: 0;
}

.kps-layout-inline .kps-input-email {
    margin-bottom: 0 !important;
    padding: 0 15px; /* Comfortable padding */
}

.kps-layout-inline .kps-action-row {
    flex: 0 0 auto; /* Don't grow, don't shrink */
    margin-bottom: 0;
}

.kps-layout-inline .kps-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    white-space: nowrap;
}

/* Responsive fallback for inline */
@media (max-width: 480px) {
    .kps-layout-inline .kps-inline-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .kps-layout-inline .kps-input-email {
        margin-bottom: 10px !important;
    }
    .kps-layout-inline .kps-btn-submit {
        width: 100%;
    }
}

/* LAYOUT: STACKED (BTN WIDTH) */
.kps-layout-stacked.kps-btn-full .kps-btn-submit {
    width: 100%;
}
.kps-layout-stacked.kps-btn-auto .kps-btn-submit {
    width: auto;
    display: inline-block;
}

/* Remove default margins if layout requires tight packing */
.kps-layout-inline .kps-step-1 { 
    margin-bottom: 0; 
}


.kps-response-msg {
    margin-top: 10px;
    font-size: 0.9em;
}
.kps-response-error {
    color: #d63638;
}
.kps-response-success {
    color: #00a32a;
}
.kps-step-intro {
    background: #e5f5fa;
    color: #005c7b;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-bottom: 15px;
}
.kps-success-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Animations */
.kps-step {
    animation: kpsFadeIn 0.5s ease-out;
}
@keyframes kpsFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------
   NEW: PROGRESSIVE MODE GRID SYSTEM (Step 2)
----------------------------------------------------------- */
.kps-cols-2 .kps-fields-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .kps-cols-2 .kps-fields-container {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
}

/* -----------------------------------------------------------
   NEW: LABEL STYLES
----------------------------------------------------------- */

/* Labels: Top (Default behavior usually, but explicit here) */
.kps-label-top .kps-field-group {
    display: block;
}
.kps-label-top label {
    display: block;
    margin-bottom: 5px;
}

/* Labels: Inline (Left of input) */
.kps-label-inline .kps-field-group {
    display: flex;
    align-items: center;
    gap: 10px;
}
.kps-label-inline label {
    margin-bottom: 0;
    white-space: nowrap;
    min-width: 80px; /* Optional min-width for alignment */
}
.kps-label-inline input {
    flex: 1; 
}

/* If using Inline Labels inside Cols-2, watch out for narrow columns */
.kps-cols-2.kps-label-inline .kps-fields-container .kps-field-group {
    flex-direction: column; /* Revert to top labels if space is tight in grid */
    align-items: stretch;
}
.kps-cols-2.kps-label-inline .kps-fields-container .kps-field-group label {
    margin-bottom: 4px;
}

/* Labels: Placeholder (Hide label tag if printed) */
.kps-label-placeholder label {
    display: none;
}
