/* * AGOOD Corporate Panel - Registration & Success Styles
 * Architecture: Modular, Grid-based, and Branding-ready
 */

:root {
    /* This variable allows the IT Admin branding engine to inject the primary color */
    --agc-primary: #0056b3; 
    --agc-success-bg: #f0fdf4;
    --agc-success-text: #16a34a;
    --agc-slate-50: #f8fafc;
    --agc-slate-200: #e2e8f0;
    --agc-slate-600: #475569;
}

.agc-registration-wrapper, 
.agc-success-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Header & Typography --- */
.agc-registration-header-main,
.agc-success-header {
    text-align: center;
    margin-bottom: 40px;
}

.agc-registration-header-main h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.agc-registration-header-main p {
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Section Headers inside Cards */
.agc-card-body h4 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.agc-card-body h4:first-of-type {
    margin-top: 0;
}

/* --- Card Architecture --- */
.agc-form-card,
.agc-success-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #eef2f5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
    overflow: hidden;
}

.agc-card-header {
    background: #fcfdfe;
    border-bottom: 1px solid #eef2f5;
    padding: 25px 35px;
}

.agc-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
}

.agc-card-body,
.agc-success-card {
    padding: 35px;
}

/* --- Input & Grid System --- */
.agc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.agc-input-group.full-width {
    grid-column: 1 / -1;
}

.agc-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Universal Input Override */
.agc-registration-wrapper .agc-input-group input,
.agc-registration-wrapper .agc-select {
    width: 100% !important;
    height: 56px !important; 
    padding: 0 16px !important; 
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background-color: var(--agc-slate-50) !important;
    font-size: 1rem !important;
    color: #334155 !important;
    box-sizing: border-box !important;
}

.agc-registration-wrapper textarea {
    width: 100% !important;
    padding: 16px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    background-color: var(--agc-slate-50) !important;
    box-sizing: border-box !important;
}

/* Custom Dropdown Arrow */
.agc-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 16px !important;
    padding-right: 40px !important; 
}

/* --- Radio Button Styling (Section 4) --- */
.agc-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.agc-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #334155;
    cursor: pointer;
}

.agc-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.agc-radio-label-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.agc-radio-label-group input[type="text"] {
    height: 40px !important;
    max-width: 250px;
}

/* --- Matrix Tables (Sections 3 & 5) --- */
.agc-table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #eef2f5;
    margin-bottom: 20px;
}

.agc-matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.agc-matrix-table th {
    background: var(--agc-slate-50);
    padding: 18px 20px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    border-bottom: 1px solid #eef2f5;
}

.agc-matrix-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    color: #1a1a1a;
}

/* --- Financials & Legal (Sections 7 & 8) --- */
.agc-terms-static ul {
    background: #f1f5f9;
    padding: 20px 20px 20px 40px;
    border-radius: 10px;
    color: var(--agc-slate-600);
    font-weight: 500;
}

.agc-terms-box {
    background: var(--agc-slate-50);
    border: 1px solid var(--agc-slate-200);
    border-radius: 10px;
    padding: 25px;
    font-size: 0.95rem;
    max-height: 300px;
    overflow-y: auto;
}

/* --- Signature Pad --- */
.agc-signature-pad-wrapper {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #fcfdfe;
    width: 100%;
    height: 250px;
    position: relative;
}

.signature-pad {
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

/* --- Success Page Specifics --- */
.agc-success-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.agc-success-card {
    max-width: 550px;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
}

.agc-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px auto;
}

.agc-success-icon svg {
    width: 42px;
    height: 42px;
}

.agc-success-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
}

.agc-success-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #64748b;
}

.agc-success-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

/* --- Footer & Buttons --- */
.agc-divider {
    border: 0;
    height: 1px;
    background: var(--agc-slate-200);
    margin: 40px 0;
}

.agc-btn-outline {
    display: inline-block;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    padding: 14px 28px;
    border-radius: 12px;
    color: var(--agc-slate-600);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.agc-submit-btn {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: var(--agc-primary);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.agc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .agc-form-grid { grid-template-columns: 1fr; }
    .agc-card-body { padding: 25px; }
    .agc-success-card { padding: 40px 20px; }
}