/* Registration Page Styles */
.registration-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2d8659, #44b678);
    border-radius: 15px 15px 0 0;
}

.registration-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.registration-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-subtitle {
    font-size: 1.2rem;
    color: #44b678;
    margin-bottom: 8px;
    font-weight: 600;
}

.event-details {
    font-size: 1rem;
    color: #d0d0d0;
    margin-bottom: 0;
}

.registration-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus {
    outline: none;
    border-color: #44b678;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(68, 182, 120, 0.1);
}

.form-group input:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 30px;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e5631, #2d8659);
    color: #fff;
    flex: 1;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d8659, #44b678);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(45, 134, 89, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.payment-section {
    padding: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-section h3 {
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.iframe-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iframe-placeholder {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.iframe-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

.payment-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-info {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-info p {
    margin-bottom: 1rem;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.payment-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.detail-item .label {
    font-size: 0.9rem;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item .value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .registration-card {
        margin: 0 10px;
    }

    .registration-header {
        padding: 20px;
    }

    .registration-header h1 {
        font-size: 1.5rem;
    }

    .event-subtitle {
        font-size: 1rem;
    }

    .event-details {
        font-size: 0.9rem;
    }

    .registration-form {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 15px;
    }

    .payment-section {
        padding: 20px;
    }
}

/* Animation for form appearance */
.registration-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation styles */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

/* Loading, Success, and Error Messages */
.loading-message, .success-message, .error-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #44b678;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon, .error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.success-icon {
    color: #27ae60;
}

.error-icon {
    color: #e74c3c;
}

.success-message h3, .error-message h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.success-message p, .error-message p, .loading-message p {
    color: #d0d0d0;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.transaction-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
}

.transaction-details p {
    margin: 8px 0;
    color: #d0d0d0;
    font-size: 1rem;
}

.transaction-details strong {
    color: #44b678;
}

/* Hubtel iframe container styling */
#hubtel-checkout-iframe {
    min-height: 600px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile responsive for payment section */
@media (max-width: 768px) {
    #hubtel-checkout-iframe {
        min-height: 500px;
    }
    
    .loading-message, .success-message, .error-message {
        padding: 30px 15px;
    }
    
    .success-icon, .error-icon {
        font-size: 2.5rem;
    }
    
    .checkout-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .checkout-actions .btn-primary,
    .checkout-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    .checkout-iframe-container iframe {
        height: 500px;
    }
    
    .checkout-container {
        padding: 15px;
    }
}

/* Checkout iframe styles */
.checkout-container {
    text-align: center;
    padding: 20px;
}

.checkout-header {
    margin-bottom: 20px;
}

.checkout-header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.checkout-header p {
    color: #d0d0d0;
    font-size: 1rem;
}

.checkout-iframe-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.checkout-iframe-container iframe {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.checkout-footer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.checkout-footer p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.checkout-footer ul {
    color: #d0d0d0;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.checkout-footer li {
    margin-bottom: 5px;
}

.checkout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.checkout-actions .btn-primary {
    background: linear-gradient(135deg, #2d8659, #44b678);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkout-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(68, 182, 120, 0.3);
}

.checkout-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.checkout-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.checkout-link-container .payment-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.checkout-link-container .payment-info p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 10px;
}

.checkout-link-container .payment-info ul {
    color: #d0d0d0;
    margin: 0;
    padding-left: 20px;
}

.checkout-link-container .payment-info li {
    margin-bottom: 5px;
}

/* AGI Membership Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(68, 182, 120, 0.3);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #44b678;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-size: 14px;
    color: #d0d0d0;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-group input[type="checkbox"]:checked + label {
    color: #44b678;
    font-weight: 600;
}

/* Hubtel Checkout Styles */
.hubtel-checkout-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 8px;
    background: #fff;
}



/* Loading and Error States */
.loading-container {
    text-align: center;
    padding: 60px 20px;
    color: #fff;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #44b678;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 60px 20px;
    color: #e74c3c;
}

.error-container h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.fallback-payment {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.fallback-payment h4 {
    margin-top: 0;
    color: #44b678;
    margin-bottom: 20px;
}

.fallback-payment p {
    color: #d0d0d0;
    margin-bottom: 15px;
}

/* Readonly Input Styling */
.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.05);
    color: #d0d0d0;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input[readonly]:focus {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Payment Details in Checkout Container */
.checkout-container .payment-details {
    background: rgba(68, 182, 120, 0.1);
    border: 1px solid rgba(68, 182, 120, 0.3);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.checkout-container .payment-details .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.checkout-container .payment-details .label {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.checkout-container .payment-details .value {
    font-weight: 700;
    color: #44b678;
    font-size: 1.1rem;
}

/* Checkout Container Styles */
.checkout-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(68, 182, 120, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(68, 182, 120, 0.3);
}

.checkout-header h3 {
    color: #44b678;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.checkout-iframe-container {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.checkout-footer {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-footer p {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.checkout-footer ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.checkout-footer li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.checkout-footer li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #44b678;
    font-weight: bold;
}

.checkout-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.checkout-actions .btn-secondary {
    padding: 12px 24px;
    background: linear-gradient(135deg, #44b678, #2d7a4f);
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.checkout-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 182, 120, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .checkout-container {
        padding: 15px;
    }
    
    .checkout-header {
        padding: 15px;
    }
    
    .checkout-header h3 {
        font-size: 1.5rem;
    }
    
    .checkout-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .checkout-actions .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}