/* ==========================================================================
   Mailto Link Generator Tool
   ========================================================================== */

/* Tool section */
.mailto-tool {
    padding: 3em 0;
}

.mailto-tool_grid {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

@media only screen and (min-width: 885px) {
    .mailto-tool_grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2em;
        align-items: start;
    }
}

/* Form */
.mailto-tool_form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.mailto-tool_field {
    display: flex;
    flex-direction: column;
}

.mailto-tool_label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #272727;
    margin-bottom: 0.4em;
}

.mailto-tool_required {
    color: #e74c3c;
}

.mailto-tool_input,
.mailto-tool_textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75em 1em;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #272727;
    background: #fff;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.mailto-tool_input:focus,
.mailto-tool_textarea:focus {
    outline: none;
    border-color: #ffde00;
    box-shadow: 0 0 0 3px rgba(255, 222, 0, 0.2);
}

.mailto-tool_textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

/* Toggle buttons for CC/BCC */
.mailto-tool_toggle-row {
    display: flex;
    gap: 0.75em;
    flex-wrap: wrap;
}

.mailto-tool_toggle-btn {
    background: none;
    border: 1px dashed #ccc;
    border-radius: 6px;
    padding: 0.4em 0.8em;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mailto-tool_toggle-btn:hover {
    border-color: #999;
    color: #272727;
}

.mailto-tool_toggle-btn.is-active {
    border-style: solid;
    border-color: #ffde00;
    background: rgba(255, 222, 0, 0.1);
    color: #272727;
}

/* Output panel */
.mailto-tool_output {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.mailto-tool_output-block {
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
}

.mailto-tool_output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em 1.25em;
    border-bottom: 1px solid #eee;
}

.mailto-tool_output-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
}

.mailto-tool_copy-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.3em 0.7em;
    font-size: 0.75rem;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mailto-tool_copy-btn:hover {
    border-color: #999;
    color: #272727;
    background: #fff;
}

.mailto-tool_copy-btn.is-copied {
    border-color: #27ae60;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.05);
}

.mailto-tool_output-value {
    padding: 1em 1.25em;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    word-break: break-all;
    overflow-wrap: break-word;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    min-height: 3em;
    max-height: 200px;
    overflow: auto;
}

/* Test link button */
.mailto-tool_test-btn {
    display: inline-block;
    text-align: center;
    padding: 0.75em 2em;
    font-size: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Audience section */
.mailto-audience {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.mailto-audience_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.mailto-audience_card {
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
    height: 100%;
    box-sizing: border-box;
}

.mailto-audience_card-heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.mailto-audience_card-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* ==========================================================================
   Shared Tool Styles (copied for standalone use)
   ========================================================================== */

/* Features */
.tool-features {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-features_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-feature {
    text-align: center;
    padding: 1.5em 1em;
}

.tool-feature_icon {
    margin-bottom: 1em;
}

.tool-feature_heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.tool-feature_desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* How it works */
.tool-how-it-works {
    padding: 3em 0;
    border-top: 1px solid #eee;
}

.tool-how-it-works_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-step {
    text-align: center;
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.tool-step_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffde00;
    color: #272727;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1em;
}

.tool-step_heading {
    font-size: 1.1rem;
    margin-bottom: 0.5em;
    color: #272727;
}

.tool-step_desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
}

/* FAQ */
.tool-faq {
    padding: 3em 0;
    border-top: 1px solid #eee;
    max-width: 720px;
    margin: 0 auto;
}

.tool-faq_title {
    text-align: center;
    margin-bottom: 2em;
    font-size: 1.75rem;
}

.tool-faq_item {
    border-bottom: 1px solid #eee;
}

.tool-faq_question {
    padding: 1.25em 0;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 2em;
    color: #272727;
}

.tool-faq_question::-webkit-details-marker {
    display: none;
}

.tool-faq_question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #999;
    transition: transform 0.2s ease;
}

details[open] .tool-faq_question::after {
    content: '\2212';
}

.tool-faq_answer {
    padding: 0 0 1.25em;
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.tool-faq_answer p {
    margin: 0;
}
