/*! 
 * JPO Registration System - Clean University Design
 * EDGSchool Theme - Simple & Pure Design
 * Version: 2.1.0 - Clean Redesign
 */

/* ==========================================================================
   JPO Page - Clean Layout
   ========================================================================== */

.jpo-area {
    background: #f8f9fa;
}

/* ==========================================================================
   Feature Boxes - Clean Academic Style
   ========================================================================== */

.feature-box {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--theme-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--theme-color);
    margin: 0 auto 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.feature-content h5 {
    color: var(--theme-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: var(--heading-font);
}

.feature-content p {
    color: var(--body-text-color);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Sidebar Widgets - Clean Style
   ========================================================================== */

.widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.widget-title {
    color: var(--theme-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--theme-color2);
    font-family: var(--heading-font);
}

/* JPO Info Items */
.jpo-info-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.jpo-info-item:last-child {
    border-bottom: none;
}

.jpo-info-item h6 {
    color: var(--theme-color);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--heading-font);
}

.jpo-info-item h6 i {
    color: var(--theme-color2);
    width: 16px;
}

.jpo-info-item p {
    color: var(--body-text-color);
    margin: 0;
    line-height: 1.6;
}

.jpo-info-item a {
    color: var(--theme-color);
    text-decoration: none;
}

.jpo-info-item a:hover {
    color: var(--theme-color2);
}

/* Statistics Widget */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--theme-color);
    line-height: 1;
    display: block;
    font-family: var(--heading-font);
}

.stat-label {
    color: var(--body-text-color);
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: 500;
}

/* ==========================================================================
   FAQ Section - Clean Design
   ========================================================================== */

.faq-item {
    background: #f8f9fa;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
}

.faq-question strong {
    color: var(--theme-color);
    font-weight: 600;
    font-family: var(--heading-font);
}

.faq-answer {
    padding: 0 20px 15px;
}

.faq-answer p {
    color: var(--body-text-color);
    margin: 0;
    line-height: 1.6;
}

/* ==========================================================================
   CLEAN JPO Registration Form - Pure Design
   ========================================================================== */

.jpo-registration-wrapper {
    max-width: 100%;
}

.jpo-form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--theme-color);
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--heading-font);
}

.jpo-icon {
    margin-right: 10px;
    color: var(--theme-color2);
}

/* Clean Messages */
.jpo-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.jpo-message.jpo-success {
    background: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.jpo-message.jpo-error {
    background: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

/* Pure Form Design */
.jpo-registration-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

/* Form Layout */
.jpo-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.jpo-form-row .jpo-col-half {
    flex: 1;
}

.jpo-form-group {
    margin-bottom: 20px;
}

/* Clean Form Labels */
.jpo-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--theme-color);
    font-size: 0.95rem;
    font-family: var(--heading-font);
}

.jpo-label .required {
    color: #dc3545;
    margin-left: 3px;
}

/* Clean Form Inputs */
.jpo-input,
.jpo-select,
.jpo-textarea {
    width: 100%;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #495057;
    background: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: var(--body-font);
}

.jpo-input::placeholder,
.jpo-textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

.jpo-input:focus,
.jpo-select:focus,
.jpo-textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 3px rgba(17, 110, 99, 0.1);
}

.jpo-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Clean Select Styling */
.jpo-select {
    cursor: pointer;
    appearance: none;
    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='%23666' stroke-width='2'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 14px;
    padding-right: 45px;
}

/* Clean Submit Button */
.jpo-form-submit {
    text-align: center;
    margin-top: 30px;
}

.jpo-submit-btn {
    background: var(--theme-color);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--heading-font);
}

.jpo-submit-btn:hover {
    background: var(--theme-color2);
    color: var(--theme-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(17, 110, 99, 0.2);
}

.jpo-submit-btn:active {
    transform: translateY(0);
}

.jpo-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.jpo-submit-btn i {
    transition: transform 0.3s ease;
}

.jpo-submit-btn:hover i {
    transform: translateX(2px);
}

/* Loading States */
.jpo-submit-btn .btn-loading {
    display: none;
}

.jpo-submit-btn.loading .btn-text {
    display: none;
}

.jpo-submit-btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.jpo-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Form Footer */
.jpo-form-footer {
    margin-top: 25px;
    text-align: center;
}

.jpo-privacy-note {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .feature-box {
        margin-bottom: 20px;
        padding: 25px 15px;
    }
    
    .widget {
        padding: 25px 20px;
    }
    
    .jpo-registration-form {
        padding: 30px 20px;
    }
    
    .jpo-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .jpo-submit-btn {
        width: 100%;
        padding: 16px 20px;
    }
    
    .jpo-form-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .jpo-input,
    .jpo-select,
    .jpo-textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .jpo-registration-form {
        padding: 20px 15px;
    }
    
    .feature-box {
        padding: 20px 15px;
    }
    
    .widget {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.jpo-input:focus-visible,
.jpo-select:focus-visible,
.jpo-textarea:focus-visible,
.jpo-submit-btn:focus-visible {
    outline: 2px solid var(--theme-color2);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .jpo-registration-form {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .jpo-submit-btn,
    .jpo-form-footer {
        display: none;
    }
}