/* Scoped styles to prevent theme conflict */
.warranty-system-wrap {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    line-height: 1.5;
}

.warranty-system-wrap * {
    box-sizing: border-box;
}

.ws-container {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 20px;
}

.ws-card {
    background: rgba(22, 22, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

/* Header */
.ws-header {
    text-align: center;
    margin-bottom: 30px;
}

.ws-logo-image {
    width: 72px;
    height: auto;
    margin: -10px auto 16px;
    display: block;
    filter: invert(19%) sepia(96%) saturate(7432%) hue-rotate(357deg) brightness(101%) contrast(114%);
}

.ws-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.ws-subtitle {
    color: #8b8b95;
    font-size: 14px;
    margin: 0;
}

/* Form */
.ws-input-group {
    margin-bottom: 20px;
}

.ws-input-group label {
    display: block;
    font-size: 12px;
    color: #D4AF37;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.ws-input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.ws-input-group input:focus {
    border-color: #D4AF37;
    background: rgba(255, 255, 255, 0.1);
}

/* Button */
.ws-cta-button {
    width: 100%;
    background: linear-gradient(90deg, #D4AF37 0%, #AA8C2C 100%);
    border: none;
    padding: 18px;
    border-radius: 12px;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
}

.ws-cta-button:hover {
    transform: translateY(-2px);
}

/* Result Card */
.ws-result-card {
    border: 1px solid #D4AF37;
    position: relative;
    overflow: hidden;
}

.ws-certificate-header {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.ws-certificate-header h2 {
    color: #D4AF37;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.ws-cert-id {
    font-size: 12px;
    color: #8b8b95;
    font-family: monospace;
}

.ws-status-badge {
    text-align: center;
    padding: 6px 12px;
    background: rgba(46, 139, 87, 0.2);
    color: #4ade80;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin: 0 auto 24px auto;
    width: fit-content;
    border: 1px solid rgba(46, 139, 87, 0.3);
}

.ws-info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ws-info-grid .info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ws-info-grid .label {
    color: #8b8b95;
    font-size: 14px;
}

.ws-info-grid .value {
    font-weight: 600;
    text-align: right;
    color: #fff;
}

.ws-info-grid .highlight {
    color: #D4AF37;
}

.ws-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 60px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-15deg);
    pointer-events: none;
}

.ws-secondary-button {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8b8b95;
    padding: 14px;
    border-radius: 12px;
    margin-top: 30px;
    cursor: pointer;
}

.ws-secondary-button:hover {
    border-color: #fff;
    color: #fff;
}

/* Utilities */
.ws-hidden {
    display: none !important;
}

.ws-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: ws-spin 1s linear infinite;
    margin: 40px auto;
}

@keyframes ws-spin {
    to {
        transform: rotate(360deg);
    }
}

.ws-fade-in {
    animation: wsFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links */
.ws-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.ws-social-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    /* Adjusted padding */
    background: transparent;
    /* Transparent button, icon has background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ws-social-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: #D4AF37;
    transform: translateX(5px);
}

.ws-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    /* 40px Square */
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    /* Soft square */
    margin-right: 15px;
    color: #D4AF37;
    flex-shrink: 0;
}

.ws-btn-icon svg {
    width: 20px;
    height: 20px;
}

.ws-btn-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Mobile Icon Colors */
.ws-social-icon.blog {
    color: #2DB400 !important;
}

.ws-social-icon.insta {
    color: #E1306C !important;
}

.ws-social-icon.place {
    color: #2196F3 !important;
}

.ws-social-icon.talktalk {
    color: #58CC1B !important;
}

.ws-social-icon.kakao {
    color: #FAE100 !important;
}

/* Search Row */
.ws-search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ws-select {
    width: 100px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.ws-select option {
    background: #111;
    color: #fff;
}

.ws-input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s;
}

.ws-input:focus {
    border-color: #D4AF37;
}

/* Result List */
.ws-result-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ws-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background 0.2s;
}

.ws-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.ws-item-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: left;
}

.ws-item-vehicle {
    font-size: 1.1rem;
    font-weight: bold;
    color: #D4AF37;
}

.ws-item-meta {
    font-size: 0.9rem;
    color: #aaa;
}

/* Mobile Optimizations */
@media (max-width: 600px) {
    .ws-container {
        padding: 10px;
        /* Reduce container padding */
        max-width: 100%;
    }

    .ws-card {
        padding: 30px 20px;
        /* Reduce card padding */
        border-radius: 20px;
    }

    .ws-header {
        margin-bottom: 20px;
    }
}

/* Contact Button Custom Styles */
.ws-contact-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    justify-content: center;
    /* Center align for singular buttons */
}

.ws-contact-btn.phone {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
}

.ws-contact-btn.phone:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #D4AF37;
}

.ws-contact-btn .ws-btn-icon {
    margin-right: 15px;
}