/* Building Tint Warranty Search Styles */
.ctw-search-container {
    padding: 20px;
    color: #ffffff;
}

.ctw-search-header {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(211, 47, 47, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ctw-search-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #d32f2f 0%, #ec1c24 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.ctw-search-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.ctw-search-header h2 {
    color: #ffffff;
    font-size: 32px;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ctw-search-header p {
    color: #9ca3af;
    font-size: 16px;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.ctw-search-form-container {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ctw-search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ctw-search-input-group {
    position: relative;
}

.ctw-search-input-group label {
    display: block;
    color: #d1d5db;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.ctw-search-input {
    width: 100%;
    padding: 16px 20px 16px 55px;
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    height: 56px;
}

.ctw-search-input:focus {
    outline: none;
    border-color: #d32f2f;
    background: rgba(17, 17, 17, 0.95);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.ctw-search-input::placeholder {
    color: #6b7280;
}

.ctw-search-input-icon {
    position: absolute;
    right: 18px;
    bottom: 8px;
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.ctw-search-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.ctw-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(211, 47, 47, 0.6);
}

.ctw-search-button:active {
    transform: translateY(0);
}

/* Search Results */
.ctw-results-container {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ctw-results-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(211, 47, 47, 0.2);
}

.ctw-warranty-card {
    background: rgba(17, 17, 17, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.ctw-warranty-card:hover {
    border-color: #d32f2f;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}

.ctw-warranty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.ctw-warranty-header h4 {
    color: #ffffff;
    font-size: 18px;
    margin: 0;
}

.ctw-warranty-code {
    background: rgba(211, 47, 47, 0.2);
    color: #d32f2f;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ctw-warranty-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.ctw-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ctw-detail-label {
    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ctw-detail-value {
    color: #e5e7eb;
    font-size: 15px;
    font-weight: 500;
}

/* Status Badges */
.ctw-status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.ctw-status-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

/* No Results */
.ctw-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.ctw-no-results-icon {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.3;
}

.ctw-no-results h4 {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.ctw-no-results p {
    font-size: 14px;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ctw-search-header {
        padding: 30px 20px;
    }
    
    .ctw-search-form-container {
        padding: 30px 20px;
    }
    
    .ctw-warranty-details {
        grid-template-columns: 1fr;
    }
    
    .ctw-warranty-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
