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

.input-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 15px;
    align-items: stretch;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.input-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

input[type="text"] {
    width: 100%;
    height: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: #667eea;
}

.error-message {
    color: #DC2626;
    font-size: 14px;
    margin-top: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* Button Check / Submit */
.btn-check {
    background: var(--button-secondary);
    color: var(--white);
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    height: 100%;
}

.btn-check:hover {
    opacity: 0.8;
}

.btn-check:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

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

.btn-check.processing .spinner {
    display: block;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.related-tool-card {
    display: flex;
    flex-direction: column;    
    align-items: center;       
    justify-content: center;
    text-align: center;       
    gap: 1rem;
    padding: 2rem 1.5rem; 
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    height: 100%;
}

.related-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--button-primary);
}

.related-tool-info h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        width: 100%;
    }

    .input-wrapper {
        width: 100%;
    }
    
    input[type="text"] {
        height: auto;
        padding: 16px 20px;
    }

    .btn-check {
        width: 100% !important;
        margin-top: 10px; 
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }
}