/* =============================================
   FC Mitgliedsantrag — Frontend Form Styles
   Prefix: ma- (Mitgliedsantrag)
   ============================================= */

.ma-container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Sections */
.ma-section {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ma-section-title {
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Form layout */
.ma-row {
    display: flex;
    gap: 16px;
}

.ma-field {
    flex: 1;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.ma-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 6px;
    font-family: "Montserrat", sans-serif;
}

.ma-field label .ma-required {
    color: #cf1c1f;
    margin-left: 2px;
}

/* Inputs */
.ma-input,
.ma-select,
.ma-textarea {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.ma-input:focus,
.ma-select:focus,
.ma-textarea:focus {
    outline: none;
    border-color: #cf1c1f;
}

.ma-input-error {
    border-color: #e74c3c !important;
}

.ma-input-valid {
    border-color: #2ecc71 !important;
}

.ma-field-error {
    font-size: 12px;
    font-weight: 600;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 16px;
}

/* Fee table */
.ma-fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.ma-fee-table th,
.ma-fee-table td {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.ma-fee-table th {
    background: #f5f5f5;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
}

.ma-fee-table tr.ma-fee-active {
    background: #f0f7e6;
    font-weight: 600;
}

.ma-fee-result {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 3px solid #cf1c1f;
}

/* SEPA mandate box */
.ma-sepa-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 16px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-top: 12px;
}

/* Signature pad */
.ma-signature-pad-wrap {
    position: relative;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #fafafa;
}

.ma-signature-pad {
    display: block;
    width: 100%;
    height: 160px;
    cursor: crosshair;
    touch-action: none;
}

.ma-sig-clear {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.1);
    color: #666;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.ma-sig-clear:hover {
    background: #cf1c1f;
    color: #fff;
}

.ma-sig-label {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 6px;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
}

/* Consent */
.ma-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
}

.ma-consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: #cf1c1f;
}

/* Buttons */
.ma-btn {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s, box-shadow 0.2s;
}

.ma-btn-primary {
    background: #cf1c1f;
    color: #fff;
}

.ma-btn-primary:hover {
    background: #a01518;
    box-shadow: 0 4px 12px rgba(207,28,31,0.3);
}

.ma-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.ma-btn-block {
    width: 100%;
    justify-content: center;
}

/* Success state */
.ma-success {
    display: none;
    text-align: center;
    padding: 40px 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.ma-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #2e7d32;
}

.ma-success h3 {
    font-family: "Oswald", sans-serif;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.ma-success p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 8px;
}

.ma-success .ma-app-number {
    font-weight: 700;
    color: #cf1c1f;
    font-size: 18px;
}

/* Honeypot */
.ma-hp { display: none !important; }

/* Responsive */
@media (max-width: 600px) {
    .ma-row {
        flex-direction: column;
        gap: 0;
    }

    .ma-section {
        padding: 16px;
    }

    .ma-container {
        padding: 0 8px;
    }

    .ma-fee-table {
        font-size: 13px;
    }

    .ma-fee-table th,
    .ma-fee-table td {
        padding: 8px 10px;
    }
}
