/* HTL Online Platform — Form Styles */

.hero-small { padding: 2rem 0; }
.hero-small h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.hero-small p { font-size: 1rem; margin-bottom: 0; }

/* Form layout */
.enrollment-form { max-width: 720px; margin: 0 auto; }

.form-section {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-section legend {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0 0.5rem;
}
.form-hint {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row-4 {
    grid-template-columns: repeat(4, 1fr);
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a56db;
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.field-error {
    display: block;
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* Payment options */
.form-price {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.payment-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.payment-option {
    flex: 1;
    min-width: 140px;
    cursor: pointer;
}
.payment-option input { display: none; }
.payment-label {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
}
.payment-option input:checked + .payment-label {
    border-color: #1a56db;
    background: #eff6ff;
    color: #1a56db;
}
.payment-option:hover .payment-label {
    border-color: #93c5fd;
}

/* Submit */
.form-submit {
    text-align: center;
    padding: 1rem 0 2rem;
}
.btn-lg {
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
}

/* Result pages */
.result-card {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.result-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.result-success .result-icon {
    background: #dcfce7;
    color: #16a34a;
}
.result-cancel .result-icon {
    background: #fef2f2;
    color: #dc2626;
}
.result-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.result-card p {
    color: #555;
    margin-bottom: 1.5rem;
}
.result-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 1.5rem;
    list-style: none;
}
.result-steps li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}
.result-steps li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #16a34a;
    font-weight: 700;
}

/* Transfer details */
.transfer-details {
    margin: 1.5rem 0;
}
.transfer-table {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
}
.transfer-table th,
.transfer-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
.transfer-table th {
    font-weight: 500;
    color: #666;
    width: 40%;
}

.transfer-upload {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}
.transfer-upload h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.transfer-upload p {
    margin-bottom: 1rem;
}

/* Company gating toggle */
.has-company-toggle { display: flex; gap: 1.5rem; margin-top: 0.5rem; }
.radio-option { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; font-weight: 500; }
.radio-option input[type="radio"] { margin: 0; accent-color: #1a56db; }
.company-later-message { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1rem; color: #1e40af; }
.company-later-message p { margin: 0; font-size: 0.95rem; }

/* Responsive */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .form-row-4 { grid-template-columns: 1fr 1fr; }
    .payment-options { flex-direction: column; }
}
@media (max-width: 480px) {
    .form-row-4 { grid-template-columns: 1fr; }
    .form-section { padding: 1rem; }
}
