/* Button Styles */
.opp-button-container {
    margin: 20px 0;
    text-align: center;
}

.opp-offer-btn,
.opp-request-button {
    background-color: #5D2179;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.opp-request-button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 15px;
    font-size: 18px;
    padding: 12px 20px;
}

.opp-offer-btn:hover,
.opp-request-button:hover {
    background-color: #6a1aae;
}

.opp-request-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Popup Styles */
#opp-offer-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.32);
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

#opp-offer-popup.flex-active {
    display: flex !important;
}

.opp-popup-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.12);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    animation: animatetop 0.4s;
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

/* Close Button */
.opp-close-button {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 26px;
    font-weight: bold;
    color: #d23;
    cursor: pointer;
}

/* Header */
.opp-popup-header {
    padding: 20px;
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.opp-header-text h2 {
    color: #fff;
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.opp-header-text p {
    margin: 5px 0 0;
    font-size: 16px;
    opacity: 0.8;
}

.opp-icon {
    width: 50px;
    height: 50px;
    background-color: #5D2179;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.opp-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Car title force display */
p#opp-car-title {
    display: block !important;
    color: #fff;
    visibility: visible !important;
}

/* Form Styles */
#opp-offer-form {
    padding: 20px;
}

.opp-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
}

.opp-form-row label {
    font-size: 15px;
    gap: 4px;
}

.opp-form-row input[type="text"],
.opp-form-row input[type="email"],
.opp-math-input-container input {
    flex: 1;
    padding: 7px 11px;
    border: 1.5px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f5f5f5;
    outline: none;
    transition: 0.2s;
    max-height: 35px;
}

.opp-form-row input[type="text"]:focus,
.opp-form-row input[type="email"]:focus,
.opp-math-input-container input:focus {
    border-color: #5D2179;
    background-color: white;
}

.opp-form-row input.opp-error,
.opp-math-input-container input.opp-error {
    border-color: #d23;
    background: #fff6f7;
}

.opp-required {
    color: #d23;
    font-size: 16px;
    margin-left: 2px;
}

/* Honeypot - visually hidden */
.opp-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Math Solver styling */
.opp-math-solver {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.opp-math-question label {
    display: block;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

#opp-math-problem {
    font-size: 18px;
    font-weight: bold;
    color: #5D2179;
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 5px;
    text-align: center;
    border: 2px solid #5D2179;
}

.opp-math-input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.opp-refresh-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.opp-refresh-btn:hover {
    background: #5a6268;
}

.opp-math-status {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
}

.opp-math-status.success {
    color: #28a745;
}
.opp-math-status.error {
    color: #dc3545;
}
.opp-math-status.loading {
    color: #6c757d;
}

/* Form response message */
#opp-form-response {
    margin-bottom: 15px;
    font-weight: 600;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 15px;
}
#opp-form-response.opp-success {
    background: #eaf9ed;
    color: #18963a;
    border: 1.5px solid #b7edcb;
}
#opp-form-response.opp-error {
    background: #fff2f3;
    color: #c51d36;
    border: 1.5px solid #f7b6b7;
}

/* Responsive */
@media (max-width: 600px) {
    .opp-form-row { gap: 10px; }
    .opp-popup-content { width: 95%; margin: 20px auto; }
    .opp-popup-header { padding: 15px; }
    .opp-header-text h2 { font-size: 20px; }
    .opp-math-input-container { gap: 8px; }
}

.opp-thank-you-message {
    text-align: center;
    padding: 50px 20px;
    animation: fadeIn 0.8s ease-in-out;
    background: #f8fff8;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.opp-checkmark {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}
.opp-thank-you-message h2 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #1b5e20;
}
.opp-thank-you-message p {
    font-size: 16px;
    color: #444;
}
.opp-back-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 10px 20px;
    background-color:#5D2179;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

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