/* Extended Warranty Form Styles */
.extended-warranty-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1400px;
    width: 100%;
    margin: 120px auto;
    /* 上下120px外边距 */
    padding: 3.33vw 13.75vw 2.5vw;
    /* 基于1920px: 64px/1920*100=3.33vw, 264px/1920*100=13.75vw, 48px/1920*100=2.5vw */
    background-color: #f8f9fa;
    border-radius: 12px;
    box-sizing: border-box;
}

.warranty-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

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

/* Upload Section */
.upload-section {
    margin-bottom: 40px;
}

.upload-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.file-upload-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.file-upload-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    min-width: 280px;
    flex: 1;
}

.file-icon {
    font-size: 24px;
    background: #ffd700;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.file-size {
    color: #666;
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.view-btn,
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    font-size: 16px;
}

.view-btn:hover {
    background: #e3f2fd;
}

.delete-btn:hover {
    background: #ffebee;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.upload-area:hover {
    border-color: #ffd700;
    background: #fffef7;
}

.upload-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.upload-area span {
    color: #666;
    font-size: 14px;
}

/* Product Section */
.product-section {
    margin-bottom: 40px;
}

.product-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.products-container {
    margin-bottom: 20px;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.product-item {
    margin-bottom: 20px;
}

.product-item label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.product-row {
    display: flex;
    gap: 16px;
}

.product-select,
.serial-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.product-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    padding-right: 48px;
}

.product-select:focus,
.serial-input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.add-product-btn {
    background: none;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
}

.add-product-btn:hover {
    border-color: #ffd700;
    color: #333;
}

.add-product-btn span {
    font-size: 16px;
}

.remove-product-btn {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 8px;
    transition: background-color 0.3s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-product-btn:hover {
    background: #ff3742;
}

.remove-product-btn:active {
    background: #ff2837;
}

.remove-product-placeholder {
    min-width: 32px;
    height: 32px;
    margin-left: 8px;
}

/* Form Section */
.form-section {
    margin-bottom: 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

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

.form-input,
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: white;
    -webkit-transition: border-color 0.3s ease;
    -moz-transition: border-color 0.3s ease;
    -ms-transition: border-color 0.3s ease;
    -o-transition: border-color 0.3s ease;
}

/* Custom Date Picker Styles */
.custom-date-picker {
    position: relative;
    width: 100%;
}

.date-display {
    cursor: pointer;
    padding-right: 40px;
    color: #333;
}

.date-display::placeholder {
    color: #999;
}

.calendar-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: none;
}

.custom-date-picker .date-display {
    pointer-events: auto;
}

.custom-date-picker .calendar-icon {
    pointer-events: auto;
}

.calendar-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 4px;
    display: none;
}

.calendar-dropdown.open {
    display: block;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.calendar-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.month-select,
.year-select {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    outline: none;
}

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

.month-select {
    min-width: 100px;
}

.year-select {
    min-width: 70px;
}

.calendar-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.calendar-nav {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    color: #666;
    font-size: 16px;
    transition: background-color 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover:not(:disabled) {
    background: #f5f5f5;
    color: #333;
}

.calendar-nav:disabled {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-bottom: 1px solid #eee;
}

.weekday {
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #666;
    background: #f9f9f9;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover:not(.disabled) {
    background: #f0f8ff;
}

.calendar-day.other-month {
    color: #ccc;
}

.calendar-day.today {
    background: #e6f3ff;
    font-weight: 600;
    color: #0066cc;
}

.calendar-day.selected {
    background: #ffd700;
    color: #333;
    font-weight: 600;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f9f9f9;
}

.calendar-day.disabled:hover {
    background: #f9f9f9;
}

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

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
    padding-right: 48px;
}

/* Warranty Quote Section */
.warranty-quote-section {
    margin-top: 40px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-header {
    margin-bottom: 16px;
}

.quote-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.quote-item {
    display: flex;
    margin-bottom: 4px;
}

.quote-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.quote-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

/* 产品名称悬浮提示样式 */
#selected-product {
    cursor: help;
}

#selected-product[title]:not([title=""]) {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #ccc;
}

/* 可搜索下拉框样式 */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23666" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

.searchable-input:focus,
.searchable-input:hover {
    border-color: #ffd700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.searchable-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e1e5e9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow: hidden;
}

.searchable-dropdown.open {
    display: block;
}

.search-box {
    padding: 12px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.search-input:focus {
    border-color: #ffd700;
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.1);
}

.options-container {
    max-height: 200px;
    overflow-y: auto;
}

.searchable-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.searchable-option:hover {
    background-color: #f8f9fa;
}

.searchable-option:last-child {
    border-bottom: none;
}

.searchable-option.selected {
    background-color: #ffd700;
    color: #333;
    font-weight: 500;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* 文件上传状态样式 */
.file-upload-item.uploading {
    border: 2px solid #ffd700;
    background-color: #fffef7;
}

.file-upload-item.uploaded {
    border: 2px solid #4caf50;
    background-color: #f1f8e9;
}

.file-upload-item.error {
    border: 2px solid #f44336;
    background-color: #ffebee;
}

.upload-progress {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.retry-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.retry-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.coverage-summary {
    margin-top: 32px;
}

.coverage-summary h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.plan-details {
    background: #f8f9fa;
    border-radius: 8px;
}

.plan-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 0 8px;
}

.plan-features li {
    position: relative;
    padding-left: 16px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.plan-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: bold;
}

.eligible-products {
    margin-top: 32px;
}

.eligible-products h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.products-list {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.important-info {
    margin-top: 32px;
}

.important-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.important-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 8px;
}

.important-list li {
    position: relative;
    padding-left: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.important-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #666;
    font-weight: bold;
}

.important-list strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Responsive adjustments for quote section */
@media (max-width: 767px) {
    .warranty-quote-section {
        margin-top: 30px;
    }

    .quote-title,
    .quote-subtitle {
        font-size: 20px;
    }

    .quote-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .plan-details {
        font-size: 16px;
    }
}

/* Submit Section */
.submit-section {
    text-align: center;
    margin-top: 40px;
}

.estimate-btn {
    background: #ffd700;
    color: #1a1a1a;
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.estimate-btn:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

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

.estimate-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Price Estimate Modal */
.price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.price-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.price-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(-20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

.price-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.price-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.price-modal-close:hover {
    background: #f5f5f5;
    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;
}

.price-label {
    font-weight: 500;
    color: #666;
    font-size: 16px;
}

.price-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

#modal-selected-product {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.price-modal-actions {
    text-align: center;
    margin-top: 24px;
}

.modal-submit-btn {
    background: #ffd700;
    color: #333;
    border: none;
    border-radius: 25px;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

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

.modal-submit-btn:active {
    transform: translateY(0);
}

.modal-submit-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */

/* PC端 (1920px屏幕，内容1200px) */
@media (min-width: 1920px) {
    .extended-warranty-section {
        max-width: 1400px;
        margin: 120px auto;
        padding: 64px 264px 48px;
    }
}

/* PC端 (1400px-1919px) */
@media (min-width: 1400px) and (max-width: 1919px) {
    .extended-warranty-section {
        max-width: 1200px;
        margin: 100px auto;
    }

    .warranty-title {
        font-size: 32px;
        margin-bottom: 50px;
    }

    .form-row {
        gap: 30px;
    }

    .product-row {
        gap: 20px;
    }
}

/* 笔记本端 (1024px - 1399px) */
@media (min-width: 1024px) and (max-width: 1399px) {
    .extended-warranty-section {
        max-width: 1000px;
        margin: 80px auto;
    }

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

    .form-row {
        gap: 25px;
    }
}

/* 平板端 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .extended-warranty-section {
        max-width: 900px;
        margin: 60px auto;
    }

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

    .form-row {
        gap: 20px;
    }

    .product-row {
        gap: 16px;
    }

    .file-upload-item {
        min-width: 250px;
    }
}

/* 移动端 (小于768px) */
@media (max-width: 767px) {
    .extended-warranty-section {
        margin: 0 auto;
        padding: 40px 20px;
        border-radius: 8px;
    }

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

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .product-row {
        flex-direction: column;
        gap: 12px;
    }

    .file-upload-row {
        flex-direction: column;
        gap: 12px;
    }

    .file-upload-item {
        min-width: auto;
        padding: 12px;
    }

    .upload-area {
        padding: 30px 20px;
    }

    .upload-icon {
        font-size: 28px;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .add-product-btn {
        padding: 12px;
        font-size: 13px;
    }

    .form-input,
    .form-select,
    .product-select,
    .serial-input {
        padding: 14px 16px;
        font-size: 16px;
        /* 防止iOS自动缩放 */
    }

    .remove-product-placeholder {
        display: none;
    }

    .remove-product-btn {
        margin-left: 0;
    }
}

/* Required field indicator */
.required-asterisk {
    color: red;
    margin-right: 4px;
}

/* 超小屏幕 (小于480px) */
@media (max-width: 479px) {
    .extended-warranty-section {
        margin: 0 auto;
        padding: 40px 20px;
    }

    .warranty-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .file-upload-item {
        padding: 10px;
    }

    .file-icon {
        font-size: 20px;
        padding: 6px;
    }

    .file-name {
        font-size: 13px;
    }

    .file-size {
        font-size: 11px;
    }

    .form-input,
    .form-select,
    .product-select,
    .serial-input {
        padding: 12px 14px;
    }

    h3 {
        font-size: 15px;
    }

    label {
        font-size: 13px;
    }
}

/* Success Modal Styles */
.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    backdrop-filter: blur(5px);
}

.success-modal {
    max-width: 500px;
    width: 90%;
    padding: 50px 40px;
    background: #ffd700;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #1a1a1a;
    transform: scale(0.7) translateY(50px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.success-modal-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: 3px solid #ffffff;
}

.success-modal-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.success-modal-message {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    opacity: 0.9;
}

.success-modal-countdown {
    background: #ffed4a;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 3px 10px rgba(255, 237, 74, 0.4);
    border: 2px solid #ffffff;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

/* File Upload States */
.file-upload-item.uploading {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 12px;
    gap: 12px;
}

.file-upload-item.uploaded {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    margin-bottom: 12px;
    gap: 12px;
}

.file-upload-item.error {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    gap: 12px;
}

.file-upload-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.file-upload-icon.uploading {
    background: #ffc107;
    animation: spin 1s linear infinite;
}

.file-upload-icon.uploaded {
    background: #28a745;
    font-size: 18px;
}

.file-upload-icon.error {
    background: #dc3545;
}

.file-upload-info {
    flex: 1;
}

.file-upload-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.file-upload-size {
    font-size: 12px;
}

.file-upload-size.uploading {
    color: #856404;
}

.file-upload-size.uploaded {
    color: #28a745;
}

.file-upload-size.error {
    color: #721c24;
}

.file-upload-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.file-upload-progress {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffc107;
    font-size: 16px;
}

.file-action-icon {
    cursor: pointer;
    transition: stroke 0.2s;
}

.file-action-icon.view:hover {
    stroke: #007bff !important;
}

.file-action-icon.delete:hover {
    stroke: #dc3545 !important;
}

.file-action-icon.retry:hover {
    stroke: #28a745 !important;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255, 237, 74, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 5px 20px rgba(255, 237, 74, 0.6);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments for success modal */
@media (max-width: 767px) {
    .success-modal {
        width: 95%;
        padding: 40px 30px;
    }

    .success-modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

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

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

    .success-modal-countdown {
        padding: 10px 20px;
        font-size: 13px;
    }

    .plan-features {
        margin: 0 0 0 5px;
    }

    .important-list {
        margin: 0 0 0 5px;
    }

    .important-list li {
        padding-left: 16px;
    }
}

@media (max-width: 479px) {
    .success-modal {
        padding: 30px 20px;
    }

    .success-modal-icon {
        width: 60px;
        height: 60px;
    }

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

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