/**
 * Pinks Insulation Calculator Styles
 */

/* ============================================
   Variables & Reset
   ============================================ */
.pic-calculator-wrapper * {
    box-sizing: border-box;
}

/* ============================================
   Main Wrapper
   ============================================ */
.pic-calculator-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ============================================
   Calculator Form
   ============================================ */
.pic-calculator-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.pic-form-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* Form Groups */
.pic-form-group {
    margin-bottom: 24px;
    width: 100%;
}

.pic-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.pic-form-group .required {
    color: #e53e3e;
}

/* Inputs & Selects */
.pic-form-group input[type="text"],
.pic-form-group input[type="email"],
.pic-form-group input[type="tel"],
.pic-form-group input[type="number"],
.pic-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.pic-form-group input:focus,
.pic-form-group select:focus {
    outline: none;
    border-color: #ef2d9f;
    box-shadow: 0 0 0 3px rgba(239, 45, 159, 0.1);
}

.pic-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="%23333" d="M0 0l6 8 6-8z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.pic-property-type label {
	font-weight: 500 !important;
}

/* Checkboxes */
.pic-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pic-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
}

.pic-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.pic-checkbox-label span {
    position: relative;
    padding-left: 32px;
    user-select: none;
}

.pic-checkbox-label span:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.pic-checkbox-label input:checked + span:before {
    background: #ef2d9f;
    border-color: #ef2d9f;
}

.pic-checkbox-label span:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.pic-checkbox-label input:checked + span:after {
    opacity: 1;
}

/* Tooltip */
.pic-tooltip {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: #cbd5e0;
    color: #fff;
    font-size: 12px;
    cursor: help;
    margin-left: 4px;
}

.pic-tooltip-bubble {
    position: absolute;
    background: #2d3748;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    max-width: 250px;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pic-tooltip-bubble:after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #2d3748 transparent transparent transparent;
}

/* Buttons */
.pic-btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

.pic-btn-primary {
    background: #ef2d9f !important;
    color: #fff !important;
}

.pic-btn-primary:hover {
    opacity: 0.9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(239, 45, 159, 0.3) !important;
    color: #fff !important;
}

.pic-btn-primary:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.pic-btn-secondary {
    background: #fff !important;
    color: #2d3748 !important;
    border: 2px solid #e2e8f0 !important;
}

.pic-btn-secondary:hover {
    border-color: #cbd5e0 !important;
    background: #f7fafc !important;
    color: #2d3748 !important;
}

.pic-btn-link {
    background: transparent !important;
    color: #718096 !important;
    padding: 10px 16px !important;
    border: none !important;
}

.pic-btn-link:hover {
    color: #2d3748 !important;
    background: transparent !important;
}

.pic-btn.pic-loading {
    position: relative;
}

.pic-btn.pic-loading:after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: pic-spin 0.6s linear infinite;
}

@keyframes pic-spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Form Actions */
.pic-form-actions {
    margin-top: 32px;
    text-align: center;
}

.pic-form-row {
    display: flex;
    gap: 16px;
}

.pic-form-row-half .pic-form-group {
    flex: 1;
}

/* Error & Success Messages */
.pic-error-message,
.pic-success-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 14px;
}

.pic-error-message {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.pic-success-message {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #22543d;
}

/* ============================================
   Results Screen
   ============================================ */
.pic-results-screen {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.pic-results-header {
    text-align: center;
    margin-bottom: 32px;
}

.pic-results-header h2 {
    font-size: 28px;
    color: #2d3748;
    margin: 0;
}

/* Result Cards */
.pic-results-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.pic-result-card {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

.pic-result-primary {
    border-color: #ef2d9f;
    background: linear-gradient(135deg, #fff 0%, #fef5fb 100%);
}

.pic-result-label {
    font-size: 14px;
    color: #718096;
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pic-result-value {
    font-size: 30px;
    font-weight: 700;
    color: #ef2d9f;
    margin-bottom: 4px;
	line-height: 1
}

.pic-result-value-small {
    font-size: 24px;
    color: #2d3748;
}

.pic-result-sublabel {
    font-size: 14px;
    color: #718096;
}

/* Disclaimer */
.pic-disclaimer {
    background: #edf2f7;
    border-left: 4px solid #cbd5e0;
    padding: 16px 20px;
    margin: 32px 0;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

/* Savings Note */
.pic-savings-note {
    background: #f0f9ff;
    border-left: 4px solid #0ea5e9;
    padding: 14px 18px;
    margin: 24px 0;
    font-size: 14px;
    color: #0c4a6e;
    line-height: 1.5;
}

/* Lead Capture */
.pic-lead-capture {
    border-top: 2px solid #e2e8f0;
    padding-top: 32px;
    margin-top: 32px;
}

.pic-lead-capture h3 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 8px;
}

.pic-lead-capture > p {
    color: #718096;
    margin-bottom: 24px;
}

/* Thank You State */
.pic-thank-you {
    text-align: center;
    padding: 40px 20px;
}

.pic-thank-you-icon {
    width: 64px;
    height: 64px;
    line-height: 64px;
    margin: 0 auto 20px;
    background: #48bb78;
    color: #fff;
    border-radius: 50%;
    font-size: 32px;
}

.pic-thank-you h3 {
    font-size: 24px;
    color: #2d3748;
    margin-bottom: 12px;
}

.pic-thank-you p {
    color: #718096;
    font-size: 16px;
}

/* Results Actions */
.pic-results-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 2px solid #e2e8f0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .pic-calculator-wrapper {
        padding: 0 16px;
    }
    
    .pic-calculator-form,
    .pic-results-screen {
        padding: 24px;
    }
    
    .pic-results-content {
        grid-template-columns: 1fr;
    }
    
    .pic-form-row-half {
        flex-direction: column;
    }
    
    .pic-results-actions {
        flex-direction: column;
    }
    
    .pic-btn {
        width: 100%;
    }
    
    .pic-result-value {
        font-size: 28px;
    }
    
    .pic-result-value-small {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .pic-results-header h2 {
        font-size: 22px;
    }
    
    .pic-result-value {
        font-size: 24px;
    }
}
