/* Enhanced Build Page Styling */

/* Form panel background color */
.build-page .col-lg-8 .card {
    background: linear-gradient(to bottom right, #f0f8ff, #ffffff);
    border: none;
}

/* Utility classes */
.bg-purple {
    background-color: var(--primary-purple) !important;
}

.text-purple {
    color: var(--primary-purple) !important;
}

.bg-gold {
    background-color: var(--accent-gold) !important;
}

.text-gold {
    color: var(--accent-gold) !important;
}

.alert-purple {
    background-color: rgba(142, 68, 173, 0.1);
    border: none;
    border-radius: 10px;
}

.alert-gold {
    background-color: rgba(212, 175, 55, 0.1);
    border: none;
    border-radius: 10px;
}

/* Animations */
@keyframes submitPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* Calculator option panels with gradient colors */
.calculator-option {
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

/* Focus state for keyboard navigation */
.calculator-option:focus,
.calculator-option:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.4);
    transform: translateY(-3px);
    position: relative;
    z-index: 1;
}

/* Different gradient colors for different option types */
.calculator-option[data-category="type"] {
    background: linear-gradient(145deg, #f0e6ff, #ffffff);
}

.calculator-option[data-category="type"]:nth-child(1) .option-icon {
    color: var(--primary-purple);
}

.calculator-option[data-category="type"]:nth-child(2) .option-icon {
    color: #7A3A93;
}

.calculator-option[data-category="type"]:nth-child(3) .option-icon {
    color: #9B59B6;
}

.calculator-option[data-category="features"] {
    background: linear-gradient(145deg, #fff8e6, #ffffff);
}

.calculator-option[data-category="features"]:nth-child(1) .option-icon {
    color: var(--accent-gold);
}

.calculator-option[data-category="features"]:nth-child(2) .option-icon {
    color: #C19307;
}

.calculator-option[data-category="features"]:nth-child(3) .option-icon {
    color: #B8860B;
}

.calculator-option[data-category="features"]:nth-child(4) .option-icon {
    color: #DAA520;
}

.calculator-option[data-category="features"]:nth-child(5) .option-icon {
    color: #D4AF37;
}

.calculator-option[data-category="features"]:nth-child(6) .option-icon {
    color: #CFB53B;
}

.calculator-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(142, 68, 173, 0.3);
}

.calculator-option.active {
    border-color: var(--primary-purple);
    background: linear-gradient(145deg, rgba(142, 68, 173, 0.1), rgba(142, 68, 173, 0.05));
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.2);
}

/* Combined focus and active state */
.calculator-option.active:focus,
.calculator-option.active:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.6);
    border-color: var(--primary-purple);
}

.calculator-option .option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-purple);
}

.calculator-option .option-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.calculator-option .option-price {
    font-weight: 700;
    color: var(--accent-gold);
}

.calculator-option .option-note {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
}

/* Form section styling */
.build-page .mb-4 {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.build-page .form-label {
    color: var(--dark-gray);
    font-weight: 600;
}

.build-page .form-control,
.build-page .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.build-page .form-control:focus,
.build-page .form-select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.25rem rgba(142, 68, 173, 0.15);
}

/* Submit button styling */
.build-page #submitBuildForm {
    position: relative;
    overflow: hidden;
    background-color: var(--accent-gold);
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
    animation: submitPulse 2s infinite;
}

.build-page #submitBuildForm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.4);
    background-color: #C19307; /* Darker gold on hover */
}

.build-page #submitBuildForm::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.build-page #submitBuildForm:hover::after {
    transform: rotate(30deg) translate(100%, 100%);
}

/* Confirmation page styling */
.confirmation-page .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.confirmation-page .card-header {
    background: linear-gradient(to right, var(--primary-purple), var(--accent-gold)) !important;
    padding: 20px;
}

.confirmation-page .list-group-item {
    background-color: rgba(248, 249, 250, 0.7);
    border: none;
    margin-bottom: 5px;
    border-radius: 8px;
}

/* Updated button styling to match the build form submit button */
.confirmation-page .btn-primary {
    position: relative;
    overflow: hidden;
    background-color: var(--accent-gold);
    border: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(142, 68, 173, 0.3);
    animation: submitPulse 2s infinite;
}

.confirmation-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(142, 68, 173, 0.4);
    background-color: #C19307; /* Darker gold on hover */
}

/* Add shimmer effect to match the submit button */
.confirmation-page .btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.confirmation-page .btn-primary:hover::after {
    transform: rotate(30deg) translate(100%, 100%);
}

/* Specific styling for the return home button to match submit button exactly */
#returnHomeBtn {
    font-size: 1rem;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    animation: submitPulse 2s infinite;
}

/* Photography options styling */
.calculator-option[data-value="onsite-photos"] {
    background: linear-gradient(145deg, #f0e6ff, #ffffff);
    border-left: 3px solid var(--primary-purple);
}

.calculator-option[data-value="pro-photography"] {
    background: linear-gradient(145deg, #fff8e6, #ffffff);
    border-left: 3px solid var(--accent-gold);
}

.calculator-option[data-value="onsite-photos"] .option-icon,
.calculator-option[data-value="pro-photography"] .option-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.calculator-option[data-value="onsite-photos"] .option-price,
.calculator-option[data-value="pro-photography"] .option-price {
    font-size: 1.2rem;
    font-weight: 800;
}

.calculator-option[data-value="onsite-photos"] .option-note,
.calculator-option[data-value="pro-photography"] .option-note {
    font-size: 0.75rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 5px;
    padding: 0 5px;
}

/* Custom styles for the build page */
.build-page {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* Highlight the active step */
.step-active {
    color: var(--accent-gold);
    font-weight: bold;
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.step-active-text {
    font-weight: bold;
    color: var(--accent-gold) !important;
}

/* Progress bar styling */
.progress-container {
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.step-text {
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background-color: var(--accent-gold);
    color: white;
}

.progress-step.active .step-text {
    color: var(--accent-gold);
    font-weight: bold;
}

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

.progress-step.completed .step-text {
    color: var(--primary-purple);
    font-weight: bold;
}

/* Form section styling */
.form-section {
    display: none;
}

.form-section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation buttons */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn-prev {
    background-color: #f8f9fa;
    color: var(--dark-gray);
    border: 1px solid #dee2e6;
}

.btn-next, .btn-submit {
    background-color: var(--accent-gold);
    color: white;
    border: none;
    box-shadow: 0 3px 10px rgba(142, 68, 173, 0.2);
}

/* Custom form controls */
.custom-control-input:checked ~ .custom-control-label::before {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(142, 68, 173, 0.25);
}

/* Price calculator */
.price-calculator {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed #dee2e6;
}

.price-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.price-total {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-gold);
    text-align: right;
    margin-top: 1rem;
}

/* Feature selection */
.feature-option {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-option:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(142, 68, 173, 0.1);
}

.feature-option.selected {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.feature-option .feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-option .feature-price {
    font-weight: bold;
    color: var(--accent-gold);
}

/* Summary section */
.summary-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.summary-item {
    margin-bottom: 1rem;
}

.summary-label {
    font-weight: 600;
    color: #495057;
}

.summary-value {
    font-weight: 500;
}

/* Confirmation message */
.confirmation-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.confirmation-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Loading spinner */
.spinner-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary-purple);
}

.spinner-text {
    margin-top: 1rem;
    font-weight: 600;
}

/* Error message */
.error-message {
    display: none;
    color: #dc3545;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Success message */
.success-message {
    display: none;
    color: #28a745;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
    }
}

/* Custom file input */
.custom-file-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Date picker customization */
.datepicker-dropdown {
    padding: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
}

.datepicker table tr td.active, 
.datepicker table tr td.active:hover, 
.datepicker table tr td.active.disabled, 
.datepicker table tr td.active.disabled:hover {
    background-color: var(--primary-purple) !important;
    background-image: none !important;
}

.datepicker table tr td.today, 
.datepicker table tr td.today:hover, 
.datepicker table tr td.today.disabled, 
.datepicker table tr td.today.disabled:hover {
    background-color: rgba(212, 175, 55, 0.3) !important;
    background-image: none !important;
    color: var(--dark-gray) !important;
}

/* Design Preferences Section Styling */
.form-control-color {
    height: 40px;
    padding: 0.25rem;
    border-radius: 8px;
}

.form-control-color::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

.form-control-color::-moz-color-swatch {
    border-radius: 4px;
    border: none;
}

/* Style option */
.style-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.style-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-gold);
}

.style-option.active {
    border-color: var(--primary-purple);
    background-color: rgba(142, 68, 173, 0.05);
}

.style-option img {
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.style-option:hover img {
    transform: scale(1.05);
}

.tiny-text {
    font-size: 0.7rem;
    line-height: 1.2;
}

/* Color swatch display in confirmation page */
.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Tooltip for style options */
.style-option .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: var(--dark-gray);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.style-option:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Style icon containers */
.style-icon-container {
    height: 60px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.style-icon {
    font-size: 24px;
    transition: all 0.3s ease;
}

.style-option:hover .style-icon {
    transform: scale(1.2);
}

/* Add some pattern overlays for certain styles */
.style-option[data-style="minimalist"] .style-icon-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #e9ecef 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.3;
}

.style-option[data-style="retro"] .style-icon-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(0,0,0,0.1) 5px, rgba(0,0,0,0.1) 10px);
}

.style-option[data-style="tech"] .style-icon-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(0deg, transparent 24%, rgba(0, 255, 65, 0.3) 25%, rgba(0, 255, 65, 0.3) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, 0.3) 75%, rgba(0, 255, 65, 0.3) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(0, 255, 65, 0.3) 25%, rgba(0, 255, 65, 0.3) 26%, transparent 27%, transparent 74%, rgba(0, 255, 65, 0.3) 75%, rgba(0, 255, 65, 0.3) 76%, transparent 77%, transparent);
    background-size: 30px 30px;
}

/* Style option focus state for keyboard navigation */
.style-option:focus,
.style-option:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.4);
    transform: translateY(-3px);
    position: relative;
    z-index: 1;
}

/* Style option combined focus and active state */
.style-option.active:focus,
.style-option.active:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.6);
}

.style-option {
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

/* Accessibility helper classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.sr-only-focusable:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focusable elements outline */
:focus {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
}

/* High contrast focus for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--primary-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.4);
} 