/**
 * Pink Roses Business Integrations
 * Client Intake Form Styles
 */

:root {
    --primary-color: #e83e8c;
    --primary-light: #f8d7e5;
    --primary-dark: #c5306f;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    background-color: #f8f9fa;
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-image: url('../img/pr_header_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.23);
    z-index: 1;
}

.header .container {
    position: relative;
    z-index: 2;
}

.logo-glow {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Form Container */
.form-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Field Groups */
.field-group {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.field-group-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.progress-step.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-step.completed {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.progress-bar-container {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #f0f0f0;
    transform: translateY(-50%);
    z-index: 1;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Service Tabs */
.service-tabs-container {
    margin-bottom: 2rem;
}

.nav-pills .nav-link {
    color: var(--secondary-color);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 0.25rem;
    margin-right: 0.25rem;
}

.nav-pills .nav-link:hover {
    background-color: rgba(232, 62, 140, 0.1);
    color: var(--primary-color);
}

.nav-pills .nav-link.active {
    color: #fff;
    background-color: var(--primary-color);
    font-weight: 600;
}

.tab-content {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    padding: 0.5rem;
}

.service-section-title {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Service Cards */
.service-card {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    background-color: #fff;
}

.service-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--primary-light);
}

.service-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card.selected {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.service-card.selected .icon-circle {
    background-color: white;
}

.service-card.selected .service-select-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Required field indicators */
.form-label .required-indicator {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2em;
    margin-left: 2px;
}

/* Visual indicator for required inputs */
input.required-field, select.required-field, textarea.required-field {
    border-left: 4px solid #dc3545;
}

input.required-field:focus, select.required-field:focus, textarea.required-field:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Required field helper text */
.required-field-note {
    color: #dc3545;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.required-field-note i {
    margin-right: 5px;
}

/* Popup notification for missed fields */
.missed-fields-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    padding: 0;
    overflow: hidden;
    display: none;
}

.missed-fields-popup .popup-header {
    background-color: #dc3545;
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.missed-fields-popup .popup-header .close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.missed-fields-popup .popup-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.missed-fields-popup .popup-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.missed-fields-popup ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

/* Highlight the current field when clicked through in the popup */
.highlight-field {
    animation: highlight-pulse 2s;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

/* Hide checkbox visually but keep it accessible */
.service-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icon-circle i {
    color: var(--primary-color);
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(232, 62, 140, 0.25);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Review Section */
.review-section .card-header {
    background-color: var(--primary-color);
}

.review-section .card {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.review-section .card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Validation Summary */
.validation-summary {
    background-color: #fff8f8;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.validation-summary h5 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.validation-summary ul {
    margin-bottom: 1rem;
}

/* Submission Success */
.submission-success {
    text-align: center;
    padding: 3rem 1rem;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

/* Construction Notice */
.construction-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background-image: url('../img/pr_header_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.23);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Construction Notice */
.construction-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 0;
    text-align: center;
}

/* Validation Summary */
.validation-summary {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.validation-summary ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

/* Review Section */
.review-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-section:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.review-section h4 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.review-section h4 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Accordion Styling */
.accordion-item {
    border: none;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-header {
    border-radius: 8px;
}

.accordion-button {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
    border-radius: 8px;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 8px rgba(232, 62, 140, 0.2);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(232, 62, 140, 0.25);
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23c5306f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    background-color: white;
    padding: 1.25rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.accordion-body p {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-light);
}

.accordion-body p strong {
    color: var(--primary-dark);
}

.accordion-body .section-divider {
    margin: 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.accordion-body .section-divider i {
    margin-right: 0.5rem;
}

.review-section .card {
    transition: transform 0.3s ease;
}

.review-section .card:hover {
    transform: translateY(-5px);
}

/* Thank you page styles */
.icon-circle-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: white;
}

.success-icon {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .progress-step {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .field-group {
        padding: 1rem;
    }
    
    .icon-circle {
        width: 60px;
        height: 60px;
    }
    
    /* Additional mobile optimizations */
    .form-container {
        padding: 1rem;
    }
    
    .header {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .progress-indicator {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    
    .progress-step {
        margin-right: 2.5rem;
        flex-shrink: 0;
    }
    
    .progress-step:last-child {
        margin-right: 0;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .step-navigation .btn {
        width: 100%;
    }
    
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .review-section h4 {
        font-size: 1.2rem;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .step-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p.lead {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 0.75rem;
    }
    
    .icon-circle {
        width: 50px;
        height: 50px;
        margin-bottom: 0.5rem;
    }
    
    .icon-circle i {
        font-size: 1.25rem;
    }
    
    .service-card h5 {
        font-size: 1rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .required-field-note {
        font-size: 0.8rem;
    }
    
    /* Fix accordion issues on small screens */
    .accordion-button {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
