.c-warranty-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
}

.warranty-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #1a1a1a;
}

.form-section {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row.warranty-plan-row {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.required-asterisk {
    color: #ff4d4f;
    margin-right: 4px;
}

.form-input,
.form-select {
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.form-input.error {
    border-color: #ff4d4f;
}

.error-message {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.submit-section {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.query-btn {
    padding: 14px 48px;
    background: #ffd700;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
}

.query-btn:hover:not(:disabled) {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.query-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    color: #999;
}

.submit-btn {
    padding: 14px 48px;
    background: #ffd700;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover:not(:disabled) {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.submit-btn:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
    transform: none;
    color: #999;
}

/* Price Modal Styles */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.price-modal-overlay.show {
    display: flex;
}

.price-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.price-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.price-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
}

.price-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.price-modal-close:hover {
    color: #333;
}

.price-modal-content {
    padding: 24px;
}

.price-details {
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.price-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 18px;
}

.price-label {
    color: #666;
    font-size: 14px;
}

.price-value {
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
}

.price-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.modal-submit-btn {
    padding: 12px 32px;
    background: #ffd700;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-submit-btn:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Timeout Modal Styles */
.timeout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.timeout-modal-overlay.show {
    display: flex;
}

.timeout-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.timeout-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.timeout-modal h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.timeout-modal p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

.redirect-notice {
    font-weight: 600;
    color: #ff4d4f;
    margin-top: 20px;
}

#countdown {
    font-size: 20px;
    color: #ff4d4f;
}

.highlight-box {
    background: #fff7e6;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    text-align: left;
}

/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.success-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.9) translateY(-30px);
    transition: transform 0.3s ease;
}

.success-modal-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    opacity: 0.1;
    border-radius: 16px;
    pointer-events: none;
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: successIconPop 0.5s ease 0.2s both;
}

@keyframes successIconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-icon svg {
    animation: checkmarkDraw 0.5s ease 0.5s both;
}

@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 50;
        stroke-dashoffset: 50;
    }

    100% {
        stroke-dasharray: 50;
        stroke-dashoffset: 0;
    }
}

.success-modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.success-modal-message {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px 0;
    animation: fadeInUp 0.5s ease 0.4s both;
}

.success-modal-countdown {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    animation: fadeInUp 0.5s ease 0.5s both;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .c-warranty-section {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .warranty-title {
        font-size: 24px;
    }

    .success-modal {
        padding: 40px 24px;
        max-width: 90%;
    }

    .success-modal-title {
        font-size: 24px;
    }

    .success-modal-message {
        font-size: 14px;
    }
}

/* Query Loading Modal Styles */
.query-loading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1003;
}

.query-loading-modal-overlay.show {
    display: flex;
}

.query-loading-modal {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.query-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.query-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.query-loading-text {
    font-size: 16px;
    color: #333;
    margin: 0;
}