* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #2c3e50;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 60px 20px 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 1.2em;
    margin-bottom: 0;
    opacity: 0.95;
    font-weight: 400;
}

.intro-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: -30px auto 30px;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.intro-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.intro-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05em;
}

.how-to-use {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-top: 25px;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.how-to-use:hover {
    border-color: #667eea;
}

.how-to-toggle {
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    padding: 20px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.3s ease;
    user-select: none;
}

.how-to-toggle:hover {
    background: #f8f9fa;
}

.how-to-toggle.active {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.how-to-toggle::before {
    content: "📋";
    margin-right: 14px;
    font-size: 1.3em;
    flex-shrink: 0;
}

.how-to-toggle::after {
    content: "▼";
    font-size: 0.85em;
    color: #667eea;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
    font-weight: bold;
}

.how-to-toggle.active::after {
    transform: rotate(180deg);
}

.how-to-content {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.how-to-content.active {
    padding: 0 30px 25px 30px;
    max-height: 1200px;
}

.how-to-content ol {
    margin: 15px 0 0 20px;
    color: #555;
    line-height: 2;
}

.how-to-content li {
    margin-bottom: 12px;
    font-size: 1.02em;
}

.how-to-content li strong {
    color: #667eea;
    font-weight: 600;
}

.how-to-content p {
    margin-top: 15px;
    color: #555;
    line-height: 1.8;
}

.main-content {
    background: white;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.input-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.input-group {
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.05em;
}

input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
    font-family: inherit;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input:hover {
    border-color: #bbb;
}

.autocomplete-items {
    position: absolute;
    border: 1px solid #e0e0e0;
    z-index: 99;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.autocomplete-items div {
    padding: 12px 18px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s ease;
}

.autocomplete-items div:hover {
    background-color: #f8f9fa;
}

.autocomplete-items div:last-child {
    border-bottom: none;
}

.result-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    display: none;
    border: 1px solid #e9ecef;
}

.result-section.active {
    display: block;
}

.plug-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.plug-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #667eea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plug-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.plug-card h3 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.plug-type {
    font-size: 2.2em;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.plug-card p {
    color: #666;
    line-height: 1.6;
}

.amazon-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 45px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.amazon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.faq-section {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin: 30px auto;
    max-width: 900px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.faq-section h2 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}

.faq-item {
    margin-bottom: 18px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    color: #2c3e50;
    font-size: 1.08em;
    font-weight: 600;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question.active {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faq-question::before {
    content: "❓";
    margin-right: 14px;
    font-size: 1.3em;
    flex-shrink: 0;
}

.faq-question::after {
    content: "▼";
    font-size: 0.85em;
    color: #667eea;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
    font-weight: bold;
}

.faq-question.active::after {
    transform: rotate(180deg);
}

.faq-answer {
    color: #555;
    line-height: 1.8;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: white;
    font-size: 1.02em;
}

.faq-answer.active {
    padding: 20px 24px;
    max-height: 600px;
}

.faq-question-text {
    flex: 1;
}

@media (max-width: 768px) {
    .input-section, .plug-info {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2em;
    }

    .main-content {
        padding: 30px 20px;
    }

    .intro-section {
        padding: 30px 20px;
        margin: -20px 20px 30px;
    }

    .input-section {
        padding: 25px 20px;
    }

    .faq-section {
        padding: 30px 20px;
    }

    header {
        padding: 40px 20px 25px 20px;
    }
}