/* Skhoolar Components Stylesheet */

/* Modern Button System - Compatible with new design */
.button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
    font-size: var(--font-size-base, 1rem);
    font-weight: var(--font-weight-semibold, 600);
    font-family: inherit;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--border-radius-lg, 0.75rem);
    cursor: pointer;
    transition: all var(--transition-base, 0.2s ease-out);
    position: relative;
    min-height: 44px;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

.button.primary, .btn-primary {
    background: var(--gradient-cta, linear-gradient(45deg, #3182ce, #63b3ed));
    color: white;
    border-color: var(--blue-bright, #3182ce);
    box-shadow: var(--shadow-md, 0 4px 6px -1px rgba(0, 0, 0, 0.1));
    transform: translateY(0);
}

.button.primary:hover, .btn-primary:hover {
    background: var(--gradient-success, linear-gradient(45deg, #38a169, #48bb78));
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
    color: white;
    border-color: var(--green-success, #38a169);
}

.button.secondary, .btn-secondary {
    background: transparent;
    color: var(--blue-bright, #3182ce);
    border: 2px solid var(--blue-bright, #3182ce);
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgba(0, 0, 0, 0.05));
}

.button.secondary:hover, .btn-secondary:hover {
    background: var(--blue-bright, #3182ce);
    color: white;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.1));
    transform: translateY(-1px);
}

.button.large, .btn-large {
    padding: var(--space-4, 1rem) var(--space-8, 2rem);
    font-size: var(--font-size-lg, 1.125rem);
    font-weight: var(--font-weight-bold, 700);
    min-height: 56px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-text);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    color: var(--color-text);
    background-color: #fff;
    border-color: var(--color-accent);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
}


/* Card Variations */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module-card {
    text-align: center;
}

.module-card .module-icon {
    margin-bottom: 1rem;
}

.module-card h3 {
    font-size: 1.25rem;
}

.module-card .learn-more {
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
}

.testimonial-card .author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-card .author strong {
    display: block;
    color: var(--color-navy);
}

.step-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.step-card .step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: white;
    font-weight: 700;
    margin: 0 auto 1rem auto;
}

/* Final CTA Form */
.cta-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-form .form-assurance {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 1rem;
}

.button.full-width {
    width: 100%;
}

/* Updated Card System */
.card {
    background: var(--white, #ffffff);
    border-radius: var(--border-radius-lg, 0.75rem);
    box-shadow: var(--shadow, 0 1px 3px 0 rgba(0, 0, 0, 0.1));
    padding: var(--space-6, 1.5rem);
    border: 1px solid var(--gray-200, #e2e8f0);
    transition: all var(--transition-base, 0.2s ease-out);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.card:hover {
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
    transform: translateY(-4px);
    border-color: var(--blue-bright, #3182ce);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent, linear-gradient(135deg, #ed8936, #805ad5));
    transform: translateX(-100%);
    transition: transform var(--transition-base, 0.2s ease-out);
}

.card:hover::before {
    transform: translateX(0);
}

/* Form Improvements */
.form-control, input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    display: block;
    width: 100%;
    padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
    font-size: var(--font-size-base, 1rem);
    line-height: 1.5;
    color: var(--color-text, #2d3748);
    background-color: var(--white, #ffffff);
    background-clip: padding-box;
    border: 2px solid var(--gray-300, #cbd5e0);
    border-radius: var(--border-radius, 0.5rem);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: inherit;
}

.form-control:focus, input:focus, select:focus, textarea:focus {
    color: var(--color-text, #2d3748);
    background-color: var(--white, #ffffff);
    border-color: var(--blue-bright, #3182ce);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Form Labels */
label {
    display: block;
    margin-bottom: var(--space-2, 0.5rem);
    font-weight: var(--font-weight-medium, 500);
    color: var(--color-text, #2d3748);
    font-size: var(--font-size-sm, 0.875rem);
}

/* Author styling for testimonials */
.author {
    display: flex;
    align-items: center;
    gap: var(--space-3, 0.75rem);
}

.author img, .author > div:first-child {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
}

.author strong {
    display: block;
    color: var(--navy-dark, #1a365d);
    font-weight: var(--font-weight-semibold, 600);
}

.author span {
    display: block;
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-light, #4a5568);
}

.author small {
    display: block;
    font-size: var(--font-size-xs, 0.75rem);
    color: var(--color-text-muted, #a0aec0);
}
