/* =============================================
   ALFA SPONSOR FORM — Modern Two-Column Layout
   Main Color: #FF0000
   ============================================= */

/* Wrapper: two-column grid */
.alfa-sponsor-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 960px;
    margin: 40px auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* LEFT PANEL — Info / Text */
.alfa-sponsor-left {
    background: linear-gradient(160deg, #FF0000 0%, #CC0000 100%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.alfa-sponsor-headline {
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.alfa-sponsor-text {
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 28px;
    opacity: 0.92;
}

/* Feature list */
.alfa-sponsor-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.alfa-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 16px;
    transition: background 0.2s;
}

.alfa-feature:hover {
    background: rgba(255, 255, 255, 0.18);
}

.alfa-feature-icon {
    font-size: 22px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.alfa-feature div {
    display: flex;
    flex-direction: column;
}

.alfa-feature strong {
    font-size: 13.5px;
    font-weight: 700;
}

.alfa-feature span {
    font-size: 12px;
    opacity: 0.75;
    margin-top: 1px;
}

/* Footer note on left panel */
.alfa-sponsor-footer-note {
    background: rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 3px solid rgba(255, 255, 255, 0.5);
}

.alfa-sponsor-footer-note p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    opacity: 0.85;
    font-style: italic;
}

/* RIGHT PANEL — Form */
.alfa-sponsor-right {
    background: #fff;
    padding: 40px 36px;
}

.alfa-sponsor-right .form-group {
    margin-bottom: 18px;
}

.alfa-sponsor-right label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13.5px;
}

.alfa-sponsor-right .req {
    color: #dc3545;
}

.alfa-sponsor-right input[type="text"],
.alfa-sponsor-right input[type="email"],
.alfa-sponsor-right input[type="number"],
.alfa-sponsor-right input[type="tel"],
.alfa-sponsor-right select,
.alfa-sponsor-right textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fafafa;
    color: #333;
}

.alfa-sponsor-right input:focus,
.alfa-sponsor-right select:focus,
.alfa-sponsor-right textarea:focus {
    border-color: #FF0000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.10);
    background: #fff;
}

.alfa-sponsor-right input:disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.alfa-sponsor-right input::placeholder {
    color: #aaa;
}

/* Field error state */
.alfa-sponsor-right input.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Min hint */
.alfa-min-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.alfa-min-hint.hint-error {
    color: #dc3545;
    font-weight: 600;
}

/* Payment method cards */
.alfa-sponsor-right .payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.alfa-sponsor-right .pm-option {
    min-width: 0;
}

.alfa-sponsor-right .pm-option input[type="radio"] {
    display: none;
}

.alfa-sponsor-right .pm-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 12.5px;
    transition: all 0.2s;
    background: #fafafa;
    color: #555;
    min-height: 44px;
}

.alfa-sponsor-right .pm-option label:hover {
    border-color: #ffb3b3;
    background: #fff5f5;
}

.alfa-sponsor-right .pm-option input:checked + label {
    border-color: #FF0000;
    background: #fff0f0;
    color: #FF0000;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.08);
}

/* Submit Button */
.alfa-sponsor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 8px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(255, 0, 0, 0.25);
}

.alfa-sponsor-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #CC0000 0%, #AA0000 100%);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.35);
    transform: translateY(-1px);
}

.alfa-sponsor-btn:active:not(:disabled) {
    transform: translateY(0);
}

.alfa-sponsor-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.alfa-sponsor-btn .btn-icon {
    font-size: 18px;
}

/* Sandbox Warning */
.alfa-sponsor-sandbox {
    background: #fff8e6;
    color: #856404;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    border-left: 4px solid #ffc107;
}

/* Blocked Country */
.alfa-sponsor-blocked {
    background: #fdf0f0;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 600;
    border-left: 4px solid #dc3545;
    text-align: center;
    line-height: 1.6;
}

/* Reload button inside blocked message */
.alfa-blocked-reload {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 28px;
    background: #FF0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.alfa-blocked-reload:hover {
    background: #CC0000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.25);
}

/* =============================================
   RESPONSIVE — Stack on mobile
   ============================================= */
@media (max-width: 768px) {
    .alfa-sponsor-wrapper {
        grid-template-columns: 1fr;
        margin: 16px 10px;
        border-radius: 12px;
    }

    .alfa-sponsor-left {
        padding: 28px 20px;
    }

    .alfa-sponsor-headline {
        font-size: 22px;
    }

    .alfa-sponsor-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .alfa-sponsor-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .alfa-feature {
        padding: 10px 12px;
        gap: 10px;
    }

    .alfa-feature-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .alfa-feature strong {
        font-size: 12.5px;
    }

    .alfa-feature span {
        font-size: 11px;
    }

    .alfa-sponsor-footer-note {
        padding: 10px 12px;
    }

    .alfa-sponsor-footer-note p {
        font-size: 11.5px;
    }

    .alfa-sponsor-right {
        padding: 24px 18px;
    }

    .alfa-sponsor-right label {
        font-size: 13px;
    }

    .alfa-sponsor-right input[type="text"],
    .alfa-sponsor-right input[type="email"],
    .alfa-sponsor-right input[type="number"],
    .alfa-sponsor-right input[type="tel"],
    .alfa-sponsor-right select,
    .alfa-sponsor-right textarea {
        padding: 10px 12px;
        font-size: 14px;
    }

    .alfa-sponsor-right .payment-methods {
        grid-template-columns: 1fr;
    }

    .alfa-sponsor-right .pm-option label {
        padding: 10px 8px;
        font-size: 13px;
    }

    .alfa-sponsor-btn {
        padding: 13px;
        font-size: 15px;
    }

    .alfa-sponsor-blocked {
        padding: 16px 14px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .alfa-sponsor-wrapper {
        margin: 10px 6px;
        border-radius: 10px;
    }

    .alfa-sponsor-left {
        padding: 22px 16px;
    }

    .alfa-sponsor-headline {
        font-size: 20px;
    }

    .alfa-sponsor-right {
        padding: 20px 14px;
    }
}

/* =============================================
   SPONSOR LIST TABLE + OPEN-SOURCE SECTION
   ============================================= */

.alfa-sponsor-list-wrap {
    max-width: 960px;
    margin: 50px auto;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header */
.alfa-sl-header {
    text-align: center;
    margin-bottom: 32px;
}

.alfa-sl-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px;
    letter-spacing: -0.3px;
}

.alfa-sl-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Empty state */
.alfa-sl-empty {
    text-align: center;
    padding: 50px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
    margin-bottom: 40px;
}

.alfa-sl-empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.alfa-sl-empty p {
    color: #888;
    font-size: 16px;
    margin: 0;
}

/* Table wrapper */
.alfa-sl-table-wrap {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.alfa-sl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 520px;
}

.alfa-sl-table thead {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
}

.alfa-sl-table thead th {
    padding: 14px 18px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border: none;
    white-space: nowrap;
}

.alfa-sl-table thead th:first-child {
    width: 50px;
    text-align: center;
}

.alfa-sl-table thead th:last-child {
    text-align: right;
}

.alfa-sl-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.alfa-sl-table tbody tr:last-child {
    border-bottom: none;
}

.alfa-sl-table tbody tr:hover {
    background: #fff5f5;
}

.alfa-sl-table tbody td {
    padding: 13px 18px;
    color: #444;
    vertical-align: middle;
    white-space: nowrap;
}

.alfa-sl-table tbody td:first-child {
    text-align: center;
    color: #aaa;
    font-weight: 600;
    font-size: 12px;
}

.alfa-sl-table tbody td:last-child {
    text-align: right;
}

.alfa-sl-table tbody td strong {
    color: #FF0000;
    font-weight: 700;
}

/* Zebra stripe */
.alfa-sl-table tbody tr:nth-child(even) {
    background: #fefafa;
}

.alfa-sl-table tbody tr:nth-child(even):hover {
    background: #fff0f0;
}

/* Open-source section */
.alfa-sl-opensource {
    background: linear-gradient(160deg, #f8f9fa 0%, #fef0f0 100%);
    border-radius: 14px;
    padding: 36px 32px;
    border: 1px solid #f0dede;
}

.alfa-sl-os-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.alfa-sl-os-icon {
    font-size: 28px;
}

.alfa-sl-os-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.alfa-sl-os-header h3 a {
    color: #FF0000;
    text-decoration: none;
}

.alfa-sl-os-header h3 a:hover {
    text-decoration: underline;
}

.alfa-sl-os-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 22px;
}

.alfa-sl-os-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.alfa-sl-os-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.alfa-sl-os-card:hover {
    border-color: #FF0000;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.10);
    transform: translateY(-2px);
}

.alfa-sl-os-card-icon {
    font-size: 28px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f0;
    border-radius: 10px;
    flex-shrink: 0;
}

.alfa-sl-os-card div {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.alfa-sl-os-card strong {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

.alfa-sl-os-card span {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.alfa-sl-os-arrow {
    font-size: 20px;
    color: #FF0000;
    font-weight: 700;
    flex-shrink: 0;
}

/* Responsive — sponsor list */
@media (max-width: 768px) {
    .alfa-sponsor-list-wrap {
        margin: 30px 10px;
        padding: 0 4px;
    }

    .alfa-sl-header h2 {
        font-size: 22px;
    }

    .alfa-sl-header p {
        font-size: 14px;
    }

    .alfa-sl-table thead th {
        padding: 10px 12px;
        font-size: 11px;
    }

    .alfa-sl-table tbody td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .alfa-sl-opensource {
        padding: 24px 18px;
    }

    .alfa-sl-os-header h3 {
        font-size: 17px;
    }

    .alfa-sl-os-cards {
        grid-template-columns: 1fr;
    }

    .alfa-sl-os-card {
        padding: 14px 16px;
    }
}

@media (max-width: 400px) {
    .alfa-sponsor-list-wrap {
        margin: 20px 6px;
    }

    .alfa-sl-header h2 {
        font-size: 19px;
    }

    .alfa-sl-opensource {
        padding: 18px 14px;
    }

    .alfa-sl-os-card-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}
