/* Search Customer Page Specific Styles */

/* Two-Column Layout */
.page-layout {
    display: flex;
    gap: 24px;
    width: 80%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start;
    justify-content: center;
}

/* Left Column: Search Container */
.container {
    flex: 1;
    max-width: 800px;
}

/* Right Column: Calculator Container */
.calculator-container {
    flex: 0 0 320px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.calculator-container.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    position: absolute;
    right: -350px;
}

.calculator-title {
    color: #1f2937;
    font-size: 1.1em;
    margin: 0 0 16px 0;
    text-align: center;
    flex-shrink: 0;
}

.calculator-iframe {
    width: 100%;
    flex: 1;
    min-height: 300px;
    border: none;
    border-radius: 8px;
    background: #f9fafb;
}

/* Floating Calculator Toggle Button */
.calculator-toggle-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.calculator-toggle-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5);
}

.calculator-toggle-btn:active {
    transform: translateY(0);
}

.calculator-toggle-btn svg {
    width: 24px;
    height: 24px;
}

/* Search Form */
.search-form {
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.search-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Read-only Inputs */
input[type="text"]:read-only {
    background: #f9fafb;
    color: #6b7280;
    cursor: default;
}

input[type="text"]:read-only:focus {
    border-color: #d0d7de;
    box-shadow: none;
}

/* Customer Display Layout */
.customer-display {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 24px 32px;
    align-items: flex-start;
    margin-top: 16px;
}

/* Image Preview */
.image-preview {
    border: 1px solid #e5e7eb;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-layout {
        flex-direction: column;
    }

    .calculator-container {
        flex: 1;
        width: 100%;
        max-width: 100%;
        position: static;
    }

    .calculator-container.hidden {
        display: none;
    }

    .container {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .page-layout {
        padding: 16px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form button {
        width: 100%;
    }

    .customer-display {
        grid-template-columns: 1fr;
    }

    .calculator-container {
        padding: 16px;
    }

    .calculator-iframe {
        height: 500px;
    }

    .calculator-toggle-btn {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .calculator-toggle-btn svg {
        width: 20px;
        height: 20px;
    }
}
