/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f7f9fc;
    color: #000000;
    line-height: 1.7;
}

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

/* Typography */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #000000;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 20px;
    min-height: 100px;
}

h2 {
    font-size: 2rem;
    border-bottom: 4px solid #f0ad4e;
    padding-bottom: 10px;
    margin-top: 40px;
}

p {
    margin-bottom: 20px;
    color: #69727d;
}

/* Header Section */
.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.header-content {
    flex: 1; 
    min-width: 300px;
}

.header-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.header-visual {
    flex: 1;
    min-width: 300px;
}

.header-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 8px;
    background-color: #f0ad4e;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 173, 78, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(240, 173, 78, 0.6);
}

.top-cta {
    font-size: 1.1rem;
}

/* Main Tool Section */
.tool-section {
    background: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    margin-bottom: 40px;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #000000;
}

.control-group select {
    width: 100%;
    padding: 14px;
    border: 2px solid #dfe3e8;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #FFFFFF;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2369727d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.3s ease;
}

.control-group select:focus {
    outline: none;
    border-color: #f0ad4e;
}

.control-group .tooltip {
    display: inline-block;
    position: relative;
    margin-left: 8px;
    cursor: pointer;
    color: #69727d;
}

.control-group .tooltip .tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #000000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
}

.control-group .tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Generate Button */
#generate-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #5cb85c;
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(92, 184, 92, 0.4);
}

#generate-btn:hover {
    background-color: #4a9d4d;
    transform: translateY(-2px);
}

/* Template Display */
.template-display h2 {
    font-size: 1.5rem;
    border-bottom: none;
}

#template-output {
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #5cb85c;
    min-height: 100px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    color: #000000;
}

/* Validation */
.error-message {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

select.invalid {
    border-color: #d9534f !important;
}

/* How to Use Section */
.how-to-use-section {
    padding: 60px 0;
    text-align: center;
}

.how-to-use-section h2 {
    border-bottom: none;
    margin-bottom: 50px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-item {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    position: relative;
    border-top: 4px solid #f0ad4e;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0ad4e;
    color: #000000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-.step-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* Why Use Section */
.why-use {
    padding: 40px;
}

.why-use h2 {
    text-align: left;
    border-bottom: none;
    margin-bottom: 20px;
}

.why-use > p {
    text-align: left;
    max-width: 700px;
    margin: 0 0 40px 0;
}

.why-use ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0;
}

.why-use li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.why-use li i {
    color: #5cb85c;
    font-size: 1.5rem;
    margin-right: 15px;
}


/* Info Sections */
.info-section {
    background: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detailed-info {
    padding: 40px;
}
.detailed-info h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.detail-item {
    background-color: #f7f9fc;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    border-color: #f0ad4e;
}

.detail-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.info-section ul {
    list-style: none;
    padding-left: 0;
}


/* FAQ Section */
.info-section.faq-section {
    padding: 40px;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 5px;
}

/* About QuoteSnap Section */
.about-quotesnap {
    background: #fffbf2;
    border-radius: 12px;
    padding: 60px 40px;
    margin: 60px 0;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-visual img {
    max-width: 300px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000000;
}

.about-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.about-content li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-content li i {
    color: #28a745;
    font-size: 1.2rem;
    margin-right: 15px;
}

.supercharge-text {
    margin-top: 30px;
    font-weight: 500;
    font-size: 1.1rem;
    color: #69727d;
}

.about-cta {
    margin-top: 30px;
}

.about-cta .cta-button {
    background-color: #f0ad4e;
    color: #000000;
    font-size: 1rem;
    padding: 15px 30px;
    box-shadow: 0 4px 15px rgba(240, 173, 78, 0.4);
}

.about-cta .cta-button:hover {
    box-shadow: 0 8px 25px rgba(240, 173, 78, 0.6);
}

.faq-section {
    padding: 60px 40px;
}

.faq-item {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border-left: 5px solid #f0ad4e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .header-content {
        order: 2;
    }
    .header-visual {
        order: 1;
    }

    h2 {
        font-size: 1.8rem;
    }
    .container {
        padding: 15px;
    }
    .tool-section, .info-section, .how-to-use-section, .about-quotesnap {
        padding: 20px;
    }

    .about-main {
        grid-template-columns: 1fr;
    }
}
