/* Check Warranty Status Styles */
.ionmara-check-warranty {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header Section */
.check-warranty-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

/* Form Section */
.check-warranty-form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.0);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}

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

.form-group {
    position: relative;
}

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

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    outline: none;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control.error {
    border-color: #dc3545;
    background-color: #fdf7f7;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6c757d;
    line-height: 1.4;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 50px;
}

.btn-primary {
    background: #EF4136;
    color: #ffffff;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
    background: #d6341f;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 65, 54, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-full {
    width: 100%;
}

.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Result Section */
.warranty-result {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
    animation: fadeInUp 0.5s ease;
}

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

/* Warranty Active (Green) */
.result-active {
    border-left: 5px solid #28a745;
}

.result-active .result-header {
    color: #28a745;
    border-bottom: 2px solid #28a745;
    margin-left: 20px;
}

.result-active .status-badge {
    background: #28a745;
    color: #ffffff;
}

.result-active .remaining-days {
    background: #d4edda;
    color: #155724;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

/* Warranty Expired (Red) */
.result-expired {
    border-left: 5px solid #dc3545;
}

.result-expired .result-header {
    color: #dc3545;
    border-bottom: 2px solid #dc3545;
    margin-left: 20px;
}

.result-expired .status-badge {
    background: #dc3545;
    color: #ffffff;
}

/* Not Found (Gray) */
.result-not-found {
    border-left: 5px solid #6c757d;
    text-align: center;
    padding: 40px 30px;
}

.result-not-found .icon {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}

.result-not-found .message {
    font-size: 18px;
    color: #6c757d;
    margin-bottom: 20px;
}

/* Result Styles */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.result-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.result-expired .result-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-details {
    margin-bottom: 25px;
    margin-left: 20px;
}

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

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.detail-value {
    color: #6c757d;
    font-size: 14px;
}

.result-actions {
    text-align: center;
}

.result-actions .btn {
    margin: 0 8px;
}

/* Notes Section */
.check-warranty-notes {
    text-align: center;
    margin-top: 30px;
}

.note-text {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ionmara-check-warranty {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .check-warranty-form-section,
    .warranty-result {
        padding: 20px;
    }

    .result-not-found,
    .warranty-result .result-not-found {
        padding: 30px 0px 30px 15px !important;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .result-actions {
        text-align: left;
    }

    .result-not-found .result-actions,
    .result-active .result-actions {
        text-align: center;
    }
    
    .result-actions .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }

    .result-active .result-actions .btn {
        width: 90%;
        margin: 8px 20px auto 20px;
    }

    .result-expired .result-actions .btn {
        width: 95%;
        margin: 8px 15px auto 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 10px;
        font-size: 15px;
    }

    .result-expired .btn {
        padding: 12px 15px !important;
        font-size: 15px !important;
    }

    .result-not-found .btn {
        padding: 12px 10px !important;
        font-size: 15px !important;
    }
}
