/**
 * Pro Sign Up Page Styles
 * MyHomePros - Contractor Sign Up
 * 
 * Requires: main.css for variables, page.css for breadcrumb base styles
 * 
 * @package MyHomePros
 */

/* ========================================
   SHARED ELEMENTS
   ======================================== */
.ps-section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary-600);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.ps-section-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--slate-900);
    line-height: 1.2;
    margin: 0;
}

@media (min-width: 768px) {
    .ps-section-title {
        font-size: 2.5rem;
    }
}

.ps-btn-primary-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 2.25rem;
    background: var(--primary-500);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(40, 161, 236, 0.4);
    border: none;
    cursor: pointer;
}

.ps-btn-primary-large:hover {
    background: var(--primary-400);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(40, 161, 236, 0.5);
}

.ps-btn-primary-large svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.ps-btn-primary-large:hover svg {
    transform: translateX(4px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.ps-hero {
    position: relative;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    padding: 3.5rem 1.5rem 5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ps-hero {
        padding: 4.5rem 2rem 6rem;
    }
}

.ps-hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 25% 85%, rgba(40, 161, 236, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 75% 15%, rgba(40, 161, 236, 0.1) 0%, transparent 45%);
    pointer-events: none;
}

.ps-hero-inner {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Breadcrumb in hero - light theme override */
.ps-hero .mhp-breadcrumb {
    justify-content: center;
    margin-bottom: 1.5rem;
}

.ps-hero .mhp-breadcrumb-link {
    color: var(--slate-400);
}

.ps-hero .mhp-breadcrumb-link:hover {
    color: var(--primary-400);
}

.ps-hero .mhp-breadcrumb-separator {
    color: var(--slate-500);
}

.ps-hero .mhp-breadcrumb-current {
    color: var(--slate-300);
}

.ps-hero-title {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    margin: 0 0 1.25rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .ps-hero-title {
        font-size: 3.5rem;
    }
}

.ps-hero-subtitle {
    font-size: 1.125rem;
    color: var(--slate-300);
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    max-width: 650px;
}

/* Hero Stats */
.ps-hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 600px) {
    .ps-hero-stats {
        flex-direction: row;
        gap: 3rem;
    }
}

.ps-hero-stat {
    text-align: center;
}

.ps-hero-stat-number {
    display: block;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.5rem;
    color: var(--primary-400);
    line-height: 1;
    margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
    .ps-hero-stat-number {
        font-size: 3rem;
    }
}

.ps-hero-stat-label {
    font-size: 0.875rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.ps-benefits {
    padding: 5rem 1.5rem;
    background: var(--slate-50);
}

@media (min-width: 768px) {
    .ps-benefits {
        padding: 6rem 2rem;
    }
}

.ps-benefits-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.ps-benefits-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ps-benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .ps-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .ps-benefits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ps-benefit-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--slate-200);
    transition: all 0.4s ease;
}

.ps-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.ps-benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-benefit-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-500);
}

.ps-benefit-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.625rem;
}

.ps-benefit-card p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   FORM SECTION
   ======================================== */
.ps-form-section {
    padding: 5rem 1.5rem;
    background: #ffffff;
}

@media (min-width: 768px) {
    .ps-form-section {
        padding: 6rem 2rem;
    }
}

.ps-form-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 900px) {
    .ps-form-inner {
        grid-template-columns: 1fr 1.1fr;
        gap: 4rem;
        align-items: start;
    }
}

.ps-form-content {
    order: 2;
}

@media (min-width: 900px) {
    .ps-form-content {
        order: 1;
        position: sticky;
        top: 2rem;
    }
}

.ps-form-description {
    font-size: 1.0625rem;
    color: var(--slate-600);
    line-height: 1.7;
    margin: 1rem 0 2rem;
}

.ps-form-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.ps-form-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--slate-700);
}

.ps-form-feature svg {
    width: 20px;
    height: 20px;
    color: var(--primary-500);
    flex-shrink: 0;
}

/* Contact Card */
.ps-contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--slate-50);
    border-radius: 0.875rem;
    border: 1px solid var(--slate-200);
}

.ps-contact-card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ps-contact-card-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.ps-contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.ps-contact-card-label {
    font-size: 0.8125rem;
    color: var(--slate-500);
}

.ps-contact-card-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-600);
    text-decoration: none;
    transition: color 0.2s;
}

.ps-contact-card-link:hover {
    color: var(--primary-500);
}

/* Form Container */
.ps-form-container {
    order: 1;
}

@media (min-width: 900px) {
    .ps-form-container {
        order: 2;
    }
}

.ps-form-card {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--slate-100);
}

@media (min-width: 768px) {
    .ps-form-card {
        padding: 2.5rem;
    }
}

.ps-form-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 1.5rem;
    text-align: center;
}

/* Form Rows */
.ps-form-row {
    margin-bottom: 1rem;
}

.ps-form-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 500px) {
    .ps-form-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ps-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.ps-form-group input,
.ps-form-group select,
.ps-form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.ps-form-group input:focus,
.ps-form-group select:focus,
.ps-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-500);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-50);
}

.ps-form-group input::placeholder,
.ps-form-group textarea::placeholder {
    color: var(--slate-400);
}

.ps-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.ps-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.ps-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.75rem;
    background: var(--primary-500);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 161, 236, 0.35);
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
}

.ps-form-submit:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 161, 236, 0.45);
}

.ps-form-submit svg {
    width: 20px;
    height: 20px;
}

/* CF7 Form Styling in Card */
.ps-form-card .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ps-form-card .wpcf7-form p {
    margin: 0;
}

.ps-form-card .wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-700);
    margin-bottom: 0.5rem;
}

.ps-form-card .wpcf7-form input[type="text"],
.ps-form-card .wpcf7-form input[type="email"],
.ps-form-card .wpcf7-form input[type="tel"],
.ps-form-card .wpcf7-form textarea,
.ps-form-card .wpcf7-form select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--slate-800);
    background: var(--slate-50);
    border: 1px solid var(--slate-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.ps-form-card .wpcf7-form input:focus,
.ps-form-card .wpcf7-form textarea:focus,
.ps-form-card .wpcf7-form select:focus {
    outline: none;
    border-color: var(--primary-500);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-50);
}

.ps-form-card .wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.ps-form-card .wpcf7-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    background: var(--primary-500);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 161, 236, 0.35);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
}

.ps-form-card .wpcf7-form input[type="submit"]:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(40, 161, 236, 0.45);
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.ps-how-it-works {
    padding: 5rem 1.5rem;
    background: var(--slate-50);
}

@media (min-width: 768px) {
    .ps-how-it-works {
        padding: 6rem 2rem;
    }
}

.ps-how-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ps-how-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.ps-how-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 900px) {
    .ps-how-steps {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
    }
}

.ps-step {
    text-align: center;
    max-width: 220px;
    padding: 1rem;
}

.ps-step-number {
    width: 56px;
    height: 56px;
    background: var(--primary-500);
    color: #ffffff;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.ps-step h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.5rem;
}

.ps-step p {
    font-size: 0.9375rem;
    color: var(--slate-500);
    line-height: 1.6;
    margin: 0;
}

.ps-step-connector {
    width: 2px;
    height: 40px;
    background: var(--slate-300);
}

@media (min-width: 900px) {
    .ps-step-connector {
        width: 60px;
        height: 2px;
        margin-top: 28px;
    }
}

/* ========================================
   TESTIMONIAL SECTION
   ======================================== */
.ps-testimonial {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

@media (min-width: 768px) {
    .ps-testimonial {
        padding: 6rem 2rem;
    }
}

.ps-testimonial-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ps-testimonial-content {
    text-align: center;
}

.ps-quote-icon {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.ps-testimonial blockquote {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    margin: 0 0 2rem;
    font-style: italic;
}

@media (min-width: 768px) {
    .ps-testimonial blockquote {
        font-size: 1.75rem;
    }
}

.ps-testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.ps-testimonial-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-testimonial-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ps-testimonial-name {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
}

.ps-testimonial-company {
    font-size: 0.875rem;
    color: var(--primary-200);
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.ps-partners {
    padding: 4rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid var(--slate-100);
}

.ps-partners-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.ps-partners-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-400);
    margin: 0 0 2rem;
}

.ps-partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem 3.5rem;
}

.ps-partners-logos img {
    height: 40px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .ps-partners-logos img {
        height: 45px;
        max-width: 150px;
    }
}

.ps-partners-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.ps-faq {
    padding: 5rem 1.5rem;
    background: var(--slate-50);
}

@media (min-width: 768px) {
    .ps-faq {
        padding: 6rem 2rem;
    }
}

.ps-faq-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.ps-faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ps-faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .ps-faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.ps-faq-item {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.75rem;
    border: 1px solid var(--slate-200);
}

.ps-faq-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--slate-900);
    margin: 0 0 0.75rem;
}

.ps-faq-item p {
    font-size: 0.9375rem;
    color: var(--slate-600);
    line-height: 1.65;
    margin: 0;
}

/* ========================================
   FINAL CTA SECTION
   ======================================== */
.ps-final-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ps-final-cta {
        padding: 6rem 2rem;
    }
}

.ps-final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(40, 161, 236, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(40, 161, 236, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.ps-final-cta-inner {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.ps-final-cta h2 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 1rem;
}

@media (min-width: 768px) {
    .ps-final-cta h2 {
        font-size: 2.75rem;
    }
}

.ps-final-cta p {
    font-size: 1.0625rem;
    color: var(--slate-300);
    line-height: 1.6;
    margin: 0 0 2rem;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */
@media (max-width: 767px) {
    .ps-hero {
        padding: 3rem 1rem 4rem;
    }
    
    .ps-hero-title {
        font-size: 2rem;
    }
    
    .ps-hero-subtitle {
        font-size: 1rem;
    }
    
    .ps-hero-stat-number {
        font-size: 2rem;
    }
    
    .ps-section-title {
        font-size: 1.875rem;
    }
    
    .ps-testimonial blockquote {
        font-size: 1.25rem;
    }
    
    .ps-final-cta h2 {
        font-size: 1.875rem;
    }
    
    .ps-btn-primary-large {
        width: 100%;
        justify-content: center;
    }
}
