/* Home Services Platform - Frontend Styles */
/* Modern Corporate Design with #294268 Base Color */

:root {
    --primary-color: #294268;
    --primary-light: #3a5a85;
    --primary-dark: #1e2f4a;
    --secondary-color: #f8fafc;
    --accent-color: #0ea5e9;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form Wrapper */
.hsp-service-request-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* Form Header */
.hsp-form-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hsp-form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hsp-form-header > * {
    position: relative;
    z-index: 1;
}

.hsp-form-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
}

.hsp-form-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
}

/* Form Sections */
.hsp-form-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.3s ease;
}

.hsp-form-section:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.hsp-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
    letter-spacing: -0.025em;
}

.hsp-section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.hsp-section-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
}

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

.hsp-form-row:last-child {
    margin-bottom: 0;
}

.hsp-form-group {
    flex: 1;
}

.hsp-col-full {
    flex: 1 1 100%;
}

.hsp-col-half {
    flex: 1 1 calc(50% - 10px);
}

.hsp-col-third {
    flex: 1 1 calc(33.333% - 14px);
}

/* Form Elements */
.hsp-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.hsp-required {
    color: var(--error-color);
    font-weight: 700;
}

.hsp-input,
.hsp-textarea,
.hsp-select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    font-family: inherit;
    color: var(--text-primary);
}

.hsp-input:focus,
.hsp-textarea:focus,
.hsp-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(41, 66, 104, 0.1);
    transform: translateY(-1px);
}

.hsp-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.hsp-file-input {
    padding: 20px;
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, white 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    color: var(--text-secondary);
}

.hsp-file-input:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(41, 66, 104, 0.05) 0%, white 100%);
    transform: translateY(-2px);
}

.hsp-field-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 6px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Services Grid */
.hsp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

.hsp-service-item {
    position: relative;
}

.hsp-service-label {
    display: block;
    cursor: pointer;
}

.hsp-service-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hsp-service-card {
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hsp-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.hsp-service-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.hsp-service-card:hover::before {
    transform: scaleX(1);
}

.hsp-service-checkbox:checked + .hsp-service-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(41, 66, 104, 0.05) 0%, white 100%);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.hsp-service-checkbox:checked + .hsp-service-card::before {
    transform: scaleX(1);
}

.hsp-service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hsp-service-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
    letter-spacing: -0.025em;
}

.hsp-service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hsp-service-price small {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hsp-service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Pricing Estimate */
.hsp-pricing-estimate {
    background: linear-gradient(135deg, var(--secondary-color) 0%, white 100%);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: var(--shadow-md);
}

.hsp-pricing-estimate h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.hsp-estimate-details {
    margin-bottom: 20px;
}

.hsp-estimate-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}

.hsp-estimate-item:last-child {
    border-bottom: none;
}

.hsp-total-estimate {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    padding-top: 20px;
    border-top: 3px solid var(--primary-color);
    margin-top: 15px;
}

.hsp-estimate-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 15px;
    margin-bottom: 0;
    font-style: italic;
    text-align: center;
    line-height: 1.5;
}

/* Submit Section */
.hsp-submit-section {
    text-align: center;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 40px 0;
}

.hsp-submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 250px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hsp-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hsp-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.hsp-submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.hsp-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.hsp-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hsp-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: hsp-spin 1s linear infinite;
}

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

.hsp-submit-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Messages */
.hsp-form-messages {
    margin-bottom: 25px;
}

.hsp-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hsp-message::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hsp-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: #065f46;
    border-color: var(--success-color);
}

.hsp-success::before {
    background: var(--success-color);
}

.hsp-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    color: #991b1b;
    border-color: var(--error-color);
}

.hsp-error::before {
    background: var(--error-color);
}

/* Pricing Table Shortcode */
.hsp-pricing-table {
    margin: 30px 0;
}

.hsp-pricing-title {
    text-align: center;
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 30px;
}

.hsp-pricing-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
}

.hsp-columns-2 .hsp-pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hsp-columns-3 .hsp-pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.hsp-pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.hsp-pricing-card:hover {
    border-color: #3182ce;
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.15);
    transform: translateY(-4px);
}

.hsp-pricing-service-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.hsp-pricing-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 15px;
}

.hsp-pricing-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

.hsp-pricing-note {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
    font-style: italic;
}

/* Client Dashboard */
.hsp-client-dashboard {
    max-width: 800px;
    margin: 0 auto;
}

.hsp-requests-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hsp-request-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.hsp-request-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hsp-request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.hsp-request-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.hsp-status-pending {
    background-color: #fef5e7;
    color: #744210;
}

.hsp-status-in-progress {
    background-color: #ebf8ff;
    color: #2c5aa0;
}

.hsp-status-completed {
    background-color: #f0fff4;
    color: #22543d;
}

.hsp-status-cancelled {
    background-color: #fed7d7;
    color: #742a2a;
}

.hsp-request-details p {
    margin-bottom: 8px;
    color: #4a5568;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hsp-service-request-wrapper {
        padding: 15px;
    }
    
    .hsp-form-title {
        font-size: 2rem;
    }
    
    .hsp-form-section {
        padding: 20px;
    }
    
    .hsp-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .hsp-col-half,
    .hsp-col-third {
        flex: 1 1 100%;
    }
    
    .hsp-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hsp-service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .hsp-service-price {
        margin-left: 0;
    }
    
    .hsp-submit-btn {
        width: 100%;
        padding: 14px 20px;
    }
    
    .hsp-pricing-grid {
        grid-template-columns: 1fr;
    }
}

