/* ==========================================
   SPONSOR FORM PAGE STYLES
   ========================================== */

.form-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.form-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.form-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.sponsor-form-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.form-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left Column - Child Summary */
.child-summary {
    position: sticky;
    top: 2rem;
}

.summary-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.summary-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.summary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-info {
    padding: 2rem;
}

.summary-info h2 {
    font-size: 1rem;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.summary-info h3 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.summary-details p {
    margin-bottom: 0.8rem;
    color: #4a5568;
    font-size: 1rem;
}

.summary-details strong {
    color: #2d3748;
    display: inline-block;
    min-width: 90px;
}

.summary-story {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f7fafc;
}

.summary-story h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.summary-story p {
    line-height: 1.7;
    color: #4a5568;
}

.match-card {
    text-align: center;
    padding: 3rem 2rem;
}

.match-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.match-card h2 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.match-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4a5568;
}

.impact-summary {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.impact-summary h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.impact-summary ul {
    list-style: none;
    padding: 0;
}

.impact-summary li {
    padding: 0.8rem 0;
    color: #4a5568;
    font-size: 1rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.impact-summary li:last-child {
    border-bottom: none;
}

.security-badge {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.security-badge p {
    margin: 0;
    color: #2d3748;
    font-weight: 600;
}

.security-badge .small-text {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
    margin-top: 0.5rem;
}

/* Right Column - Form */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Form Steps */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: #e2e8f0;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #e2e8f0;
    color: #a0aec0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.step-label {
    font-size: 0.95rem;
    color: #a0aec0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
    color: #2d3748;
    font-weight: 600;
}

/* Form Steps Content */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 2rem;
    font-weight: 700;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: #718096;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Amount Options */
.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.amount-option {
    cursor: pointer;
}

.amount-option input {
    display: none;
}

.amount-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.amount-option input:checked + .amount-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.amount-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.amount-label {
    font-size: 0.9rem;
    color: #718096;
}

.input-with-prefix {
    position: relative;
}

.input-with-prefix .prefix {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4a5568;
    font-weight: 600;
}

.input-with-prefix input {
    padding-left: 2.5rem;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-method {
    cursor: pointer;
}

.payment-method input {
    display: none;
}

.payment-method span {
    display: block;
    padding: 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.payment-method input:checked + span {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
}

.info-box {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.info-box h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.info-box p {
    margin-bottom: 0.8rem;
    color: #4a5568;
}

.info-box .note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e2e8f0;
    font-style: italic;
    color: #718096;
}

/* Summary Box */
.summary-box {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.summary-box h4 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    color: #4a5568;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.summary-row.total {
    border-bottom: none;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.summary-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f7fafc;
}

.form-actions .btn {
    flex: 1;
    padding: 1.1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.btn-prev {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-prev:hover {
    background: #667eea;
    color: white;
}

.btn-submit {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(72, 187, 120, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-layout {
        grid-template-columns: 350px 1fr;
    }
}

@media (max-width: 992px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .child-summary {
        position: static;
        margin-bottom: 3rem;
    }

    .summary-card {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .form-hero h1 {
        font-size: 2rem;
    }

    .form-hero p {
        font-size: 1rem;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-steps {
        margin-bottom: 2rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sponsor-form-section {
        padding: 2rem 0;
    }

    .form-hero {
        padding: 3rem 0;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .amount-options {
        grid-template-columns: 1fr;
    }

    .form-step h3 {
        font-size: 1.5rem;
    }
}