/* PayRankJobs Design System */

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #212529;
    background-color: #FFFFFF;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-primary {
    background: #0D47A1;
    color: white;
}

.btn-primary:hover {
    background: #1565C0;
    color: white;
}

.btn-secondary {
    background: #6C757D;
    color: white;
}

.btn-secondary:hover {
    background: #5A6268;
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

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

/* Cards */
.card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
    background: #F8F9FA;
}

.card-header h2,
.card-header h3 {
    margin-bottom: 0;
    color: #212529;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Feature Cards Specific Styling */
#features .card {
    text-align: center;
    padding: 0;
    border: 1px solid #E9ECEF;
    background: #FFFFFF;
}

#features .card-body {
    padding: 24px;
}

#features .card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #212529;
}

#features .card p {
    font-size: 14px;
    line-height: 1.6;
    color: #6C757D;
    margin-bottom: 0;
}

/* Icon styling for feature cards */
#features .card > div:first-child {
    width: 48px;
    height: 48px;
    background: #E3F2FD;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 20px auto;
    font-size: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    color: #212529;
    background-color: #FFFFFF;
    background-clip: padding-box;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: 0;
    border-color: #0D47A1;
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

.form-hint {
    margin-top: 8px;
    font-size: 14px;
    color: #6B7280;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-success {
    color: #065F46;
    background-color: #D1FAE5;
    border-color: #A7F3D0;
}

.alert-error {
    color: #DC2626;
    background-color: #FEE2E2;
    border-color: #FECACA;
}

.alert-info {
    color: #0C4A6E;
    background-color: #DBEAFE;
    border-color: #BFDBFE;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: #F8F9FA;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 32px;
    width: auto;
}

/* Footer */
.footer {
    background: #1F2937;
    color: #D1D5DB;
    padding: 60px 0 30px;
}

.footer h4 {
    color: #F9FAFB;
    margin-bottom: 16px;
}

.footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #F9FAFB;
}

/* FAQ Specific Styles */
.faq-item {
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-weight: 600;
    color: #212529;
    background: #F8F9FA;
    border-radius: 8px;
    margin-bottom: 0;
}

.faq-question:hover {
    background: #E9ECEF;
}

.faq-answer {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    padding: 0 24px !important;
    background: white;
    color: #6C757D;
    border-radius: 0 0 8px 8px;
}

.faq-item.active .faq-answer {
    max-height: 1000px !important;
    padding: 0 24px 24px 24px !important;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #0D47A1;
    font-size: 18px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .nav-center {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        padding: 12px 20px;
    }
    
    .nav-center {
        display: none;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.gap-16 {
    gap: 16px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.mt-32 {
    margin-top: 32px;
}

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}