/* --- BATCH SENDER SPECIFIC STYLES --- */

/* --- Sections --- */
.tool-section {
    padding: 3rem 0 5rem;
}

.how-it-works-section {
    padding: 5rem 0;
    background-color: var(--surface-color);
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.how-it-works-step {
    text-align: center;
}
.how-it-works-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.how-it-works-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Main Tool Container --- */
.tool-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wizard-step {
    display: none; 
    flex-direction: column;
    animation: fadeIn 0.5s ease-in-out;
}

.wizard-step.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    text-align: center;
}

.wizard-step .step-description {
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.5;
    text-align: center;
}

/* --- Form Groups & Inputs --- */
.form-group {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--font-sans);
    font-size: 1rem;
    box-sizing: border-box;
}

.text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.large-textarea {
    width: 100%;
    min-height: 200px;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    color: var(--text-color);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    resize: vertical;
    margin-bottom: 1.5rem;
}

.large-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.radio-group {
    display: flex;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    background-color: #0d1117;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    flex-grow: 1;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0;
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}


/* --- Modern Date Picker --- */
.date-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #0d1117;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.date-picker-wrapper:has(input:focus) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.date-picker-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23adb5bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.date-picker-wrapper input[type="datetime-local"] {
    border: none;
    background: transparent;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.date-picker-wrapper input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    background: transparent;
    cursor: pointer;
    opacity: 0;
}

/* --- Summary & Info Boxes --- */
.summary-box, .info-box {
    width: 100%;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.hero-info-box {
    max-width: 550px;
    margin: 2rem auto 0;
    text-align: center;
    background-color: rgba(0, 123, 255, 0.1);
    border-color: var(--primary-color);
}

.info-box strong {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
}

.summary-item span {
    color: var(--text-muted);
}

.summary-item strong {
    color: var(--text-color);
    font-weight: 600;
}

.summary-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
}

.summary-item.total strong {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.code-display {
    display: block;
    background-color: #000;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    color: #c9d1d9;
    word-break: break-all;
    font-size: 0.9rem;
}

/* --- Status & Loader --- */
.status-box {
    width: 100%;
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.status-box p {
    margin: 0;
    font-weight: 600;
}

.status-box.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: #f8d7da;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid var(--text-muted);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}